975143fd08
For various synchronized scenarios, this decorator allows flexible lock name with parameters and names of underlying functions. For instance: @synchronized('{f_name}-{resource.id}-{snap[name]}') def foo(self, resource, snap): Change-Id: I4bf75be2902cd598a5a5a2c5887d4b4262f3e042 Related-Bug: #1824911
11 lines
389 B
YAML
11 lines
389 B
YAML
---
|
|
other:
|
|
- |
|
|
Add a generic coordination lock mechanism for various
|
|
scenarios. This decorator allows flexible lock name
|
|
with parameters and names of underlying functions. And
|
|
in order to achive backward compatibility with python2.7
|
|
several functions was copied from the old version of
|
|
python inspect. Once python2.7 is retired, we can drop
|
|
such duplication.
|