OpenStack library for all concurrency-related code
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
doc Adding pre-commit 2020-09-03 14:25:24 +02:00
oslo_concurrency Add support for non-blocking locks 2021-06-24 09:45:48 +02:00
releasenotes Update master for stable/victoria 2020-09-11 20:56:11 +00:00
.coveragerc Fix coverage configuration and execution 2015-10-05 17:01:16 -04:00
.gitignore ignore reno builds artifacts 2020-02-11 15:25:49 +01:00
.gitreview OpenDev Migration Patch 2019-04-19 19:28:07 +00:00
.mailmap exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
.pre-commit-config.yaml Move flake8 as a pre-commit local target. 2021-03-23 13:15:24 +01:00
.stestr.conf Switch to stestr 2018-07-04 08:18:31 +07:00
.zuul.yaml Dropping lower constraints testing 2020-12-18 15:07:17 +01:00
CONTRIBUTING.rst Align contributing doc with oslo's policy 2020-05-04 18:20:24 +02:00
HACKING.rst Update URLs in documents according to document migration 2017-07-12 22:22:54 +08:00
LICENSE exported from oslo-incubator by graduate.sh 2014-08-07 22:26:50 +04:00
README.rst Replace git.openstack.org URLs with opendev.org URLs 2019-05-05 13:01:11 +08:00
requirements.txt Remove six usage 2020-05-09 16:42:30 +02:00
setup.cfg setup.cfg: Replace dashes with underscores 2021-05-05 10:03:59 +08:00
setup.py remove outdated header 2020-02-10 18:34:51 +01:00
test-requirements.txt Adding pre-commit 2020-09-03 14:25:24 +02:00
tox.ini Merge "Use py3 as the default runtime for tox" 2021-04-16 17:21:33 +00: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.