Bases: object
Acquire a lock on the stack.
Parameters: | retry (boolean) – When True, retry if lock was released while stealing. |
---|
Return the ID of the engine which currently holds the lock.
Returns None if there is no lock held on the stack.
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.
Parameters: | retry (boolean) – When True, retry if lock was released while stealing. |
---|