diff options
author | Romain Poupin <romain.poupin@gmail.com> | 2021-06-16 11:43:59 +0200 |
---|---|---|
committer | Romain Poupin <romain.poupin@gmail.com> | 2021-06-24 09:45:48 +0200 |
commit | a9ccf0a64deb63e7ea07d232437da797462d8f4b (patch) | |
tree | 339817f9891d617c007e56974560a67207bbe493 /setup.cfg | |
parent | 8e08400864f32649536c692b4c86c336c01f4153 (diff) | |
download | oslo-concurrency-a9ccf0a64deb63e7ea07d232437da797462d8f4b.tar.gz |
Add support for non-blocking locks4.5.0
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
Diffstat (limited to 'setup.cfg')
0 files changed, 0 insertions, 0 deletions