Go to file
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
2020-09-03 14:25:24 +02:00
2020-02-11 15:25:49 +01:00
2019-04-19 19:28:07 +00:00
2018-07-04 08:18:31 +07:00
2020-12-18 15:07:17 +01:00
2020-05-09 16:42:30 +02:00
2020-02-10 18:34:51 +01:00
2020-09-03 14:25:24 +02:00

Team and repository tags

image

oslo.concurrency

Latest Version

The oslo.concurrency library has utilities for safely running multi-thread, multi-process applications using locking mechanisms and for running external processes.

Description
OpenStack library for all concurrency-related code
Readme 4.7 MiB
Languages
Python 100%