oslo.concurrency/oslo_concurrency
Romain Poupin a9ccf0a64d Add support for non-blocking locks
This adds support for a non-blocking behavior of the lock : the context-based
lock now raises an AcquireLockFailedException if the lock can't be acquired on
the first try.

At a higher layer, we just caught this exception inside the 'synchronized'
decorator to prevent calling the wrapped function. In which case, we then
trace this acquisition failure.

For now at least, disabling blocking is not supported when using fair locks
because the ReaderWriterLock.write_lock() provided by the fasteners module
doesn't implements this behavior.

Change-Id: I409da79007c9ba4fb8585da881e3d56998b0b98b
2021-06-24 09:45:48 +02:00
..
fixture Use versionadded and versionchanged in doc 2015-11-05 13:31:40 +01:00
locale Imported Translations from Zanata 2020-04-29 09:03:41 +00:00
tests Add support for non-blocking locks 2021-06-24 09:45:48 +02:00
__init__.py Move out of the oslo namespace package 2014-11-14 17:17:25 -05:00
_i18n.py Remove log translations 2017-07-11 02:40:05 +00:00
lockutils.py Add support for non-blocking locks 2021-06-24 09:45:48 +02:00
opts.py Update hacking version 2019-01-21 19:32:38 -05:00
prlimit.py Remove references to 'sys.version_info' 2021-04-27 02:53:57 +00:00
processutils.py Monkey patch original current_thread _active in processutils 2020-09-30 11:28:12 +00:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00
watchdog.py Use versionadded and versionchanged in doc 2015-11-05 13:31:40 +01:00