Skip to main content

This is specific kind of lock, that allows only one operation at the time (read or write) by any number of callers.

Project description

WHS Ltd provides collection of pure-python modules.

This is implementation of lock, that allows only one kind of operation be executed at the time (reading or writing). Any number of callers can acquire reading or writing at once, but if someone tries to acquire writing while reading is acquired, it will wait, until all readers that acquired lock release it (and vice versa).

At the moment it works only with threading, but few simple modifications will result in multiprocessing-enabled implementation.

whs.utils.rwlock is a package, but should be used as a module (all code is in

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for whs.utils.rwlock, version 0.6.0
Filename, size File type Python version Upload date Hashes
Filename, size whs.utils.rwlock-0.6.0.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page