langacore.kit.common 0.2.4 documentation
Implements a reusable Java-like synchronization decorator. It is using threading locks or filesystem-based locks to synchronize subsequent calls of the specified functions. The former kind of lock is reentrant, the latter is not.
For filesystem-based locks the module is using Skip Montanaro’s lockfile library, compatible with Windows and POSIX environments.
Note
Instead of importing the whole structure, a recommended shortcut is available. Use from langacore.kit.concurrency import synchronized.
Synchronization decorator.
Parameters: |
|
---|