Resource locking helpers
-
class
pyaltt2.locker.
Locker
(mod='', timeout=5, relative=True) Function locker decorator object
Parameters: - mod – module to report in logs
- timeout – lock timeout (default: 5 sec)
- relative – use thread-relative locking (default: True)
-
critical
() Function is called when lock can not be obtained
Empty by default, override or monkey-patch