Skip to content

mattsunsjf/rwlock-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rwlock-py

A writer-biased Reader-Writer Lock

Forked from: http://code.activestate.com/recipes/577803-reader-writer-lock-with-priority-for-writers/

Original Author: Mateusz Kobos http://workshop.mkobos.com/

The enhancement based on original implementation

  • Protect the critical section of writer-acquire and writer-release. Several writers waiting for readers to release the lock will get the lock in the order of arriving time.

Known issues

  • Not able to query whether lock is in reader(s) or writer
  • If the lock is released several times, there will be a problem

About

A writer-biased Reader-Writer Lock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages