The heat.engine.stack_lock
Module¶
-
class
heat.engine.stack_lock.
StackLock
(context, stack_id, engine_id)[source]¶ Bases:
object
-
acquire
(retry=True)[source]¶ Acquire a lock on the stack.
Parameters: retry (boolean) – When True, retry if lock was released while stealing.
-
thread_lock
(*args, **kwds)[source]¶ Acquire a lock and release it only if there is an exception.
The release method still needs to be scheduled to be run at the end of the thread using the Thread.link method.
-