Home | History | Annotate | Download | only in multiprocessing

Lines Matching defs:Lock

36     'Lock', 'RLock', 'Semaphore', 'BoundedSemaphore', 'Condition', 'Event'
141 # Non-recursive lock
144 class Lock(SemLock):
163 return '<Lock(owner=%s)>' % name
166 # Recursive lock
197 def __init__(self, lock=None):
198 self._lock = lock or RLock()
239 # release lock
251 # reacquire lock
256 assert self._lock._semlock._is_mine(), 'lock is not owned'
273 assert self._lock._semlock._is_mine(), 'lock is not owned'
302 self._cond = Condition(Lock())