Home
last modified time | relevance | path

Searched refs:_is_owned (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython2/Lib/test/
Dlock_tests.py225 self.assertFalse(lock._is_owned())
227 self.assertTrue(lock._is_owned())
229 self.assertTrue(lock._is_owned())
232 result.append(lock._is_owned())
236 self.assertTrue(lock._is_owned())
238 self.assertFalse(lock._is_owned())
Dtest_contextlib.py298 self.boilerPlate(lock, lock._is_owned)
303 return lock._is_owned()
/external/python/cpython2/Lib/
Dthreading.py238 def _is_owned(self): member in _RLock
280 self._is_owned = lock._is_owned
300 def _is_owned(self): member in _Condition
332 if not self._is_owned():
383 if not self._is_owned():