Skip to content

teferi/python_posix_rwlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python_posix_rwlock

Python wrapper around posix rwlock.

Sample usage:

>>> import posix_rwlock
>>> lock = posix_rwlock.RWLock()
>>> lock.try_wrlock()
True
>>> lock.wrlock()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
posix_rwlock.RWLockException: Resource deadlock avoided
>>> lock.unlock()
True
>>> lock.try_rdlock()
True
>>> lock.try_wrlock()
False

About

python wrapper for posix rwlock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published