c4c8be61e0
Added a meta-attrbute class `io.murano.metadata.Synchronize` which may be attached to any Murano methods to control which objects should Murano Executor use as synchronization primitives for concurrent exeutions of the marked methods. No two methods cannot be called concurrently if their use the same synhronization objects. By default (if no attribute is present) the old behavior is preserved: method calls are synchronized on the objects they are called for. The attribute has two properties: * `onThis` (defaults to true) indicates that the method calls should be synchronized on target object. * `onArgs` (defaults to an empty list) indicated that the method calls should be synchronized on the values of arguments with the specified names. Truly 'thread-safe' methods may be declared by providing this attribute with `onThis` set to 'false' and `onArgs` set to default empty list value. Executor is modified to properly use this attribute. Targets-blueprint: application-development-framework Change-Id: Iea028df1105c57a31a22887916c2428929b83e59 |
||
---|---|---|
.. | ||
functional | ||
unit | ||
__init__.py |