5cd9f3c92f33ea3167a7555ae08c25fcaa831f8c
Due to https://bitbucket.org/ncoghlan/contextlib2/issue/17/ it appears the the exit stack has issues with locks on py2.6 so use a smaller implementation that does the same thing instead.
Fasteners
Overview
A python package that provides useful locks.
It includes the following.
Reader-writer locks
- Multiple readers (at the same time).
- Single writers (blocking any readers).
- Helpful
read_lockedandwrite_lockeddecorators.
Inter-process locks
- Single writer using file based locking (these automatically release
on process exit, even if
__release__or__exit__is never called). - Helpful
interprocess_lockeddecorator.
Description
Languages
Python
100%
