Lines Matching refs:_lock
213 self._lock = lock or ctx.RLock()
221 return (self._lock, self._sleeping_count,
225 (self._lock, self._sleeping_count,
230 return self._lock.__enter__()
233 return self._lock.__exit__(*args)
236 self.acquire = self._lock.acquire
237 self.release = self._lock.release
245 return '<%s(%s, %s)>' % (self.__class__.__name__, self._lock, num_waiters)
248 assert self._lock._semlock._is_mine(), \
255 count = self._lock._semlock._count()
257 self._lock.release()
268 self._lock.acquire()
271 assert self._lock._semlock._is_mine(), 'lock is not owned'