Home
last modified time | relevance | path

Searched refs:_is_owned (Results 1 – 6 of 6) 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/cpython3/Lib/
Dthreading.py198 def _is_owned(self): member in _RLock
235 self._is_owned = lock._is_owned
255 def _is_owned(self): member in Condition
287 if not self._is_owned():
345 if not self._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():
/external/python/cpython3/Lib/test/
Dlock_tests.py320 self.assertFalse(lock._is_owned())
322 self.assertTrue(lock._is_owned())
324 self.assertTrue(lock._is_owned())
327 result.append(lock._is_owned())
331 self.assertTrue(lock._is_owned())
333 self.assertFalse(lock._is_owned())
Dtest_contextlib.py352 self.boilerPlate(lock, lock._is_owned)
357 return lock._is_owned()