Re-entrant lock; can be locked multiple times by same thread
Methods
|
|
__init__
_doAcquire
attempt
locked
obtain
release
|
|
__init__
|
__init__ ( self )
|
|
_doAcquire
|
_doAcquire ( self, blocking )
|
|
attempt
|
attempt ( self )
Nonblocking, nestable attempt to acquire; returns success flag
|
|
locked
|
locked ( self )
Is this lock owned by the current thread?
|
|
obtain
|
obtain ( self )
Blocking, nestable wait to acquire; success unless error
|
|
release
|
release ( self )
Release one level of lock nesting; must be locked() when called
Exceptions
|
|
RuntimeError, "release() of un-acquire()d lock"
|
|
|