Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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 __init__.py).

Release History

Release History

This version
History Node

0.6.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
whs.utils.rwlock-0.6.0.tar.gz (6.9 kB) Copy SHA256 Checksum SHA256 Source Jan 9, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting