Home
last modified time | relevance | path

Searched refs:_shutdown_locks (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Lib/
H A Dthreading.py820 _shutdown_locks = set() variable
826 Calling this from time to time avoids an ever-growing _shutdown_locks
832 to_remove = [lock for lock in _shutdown_locks if not lock.locked()]
833 _shutdown_locks.difference_update(to_remove)
1019 _shutdown_locks.add(self._tstate_lock)
1068 # Remove our lock and other released locks from _shutdown_locks
1575 locks = list(_shutdown_locks)
1576 _shutdown_locks.clear()
1614 global _shutdown_locks_lock, _shutdown_locks
1632 _shutdown_locks
[all...]
/third_party/python/Lib/test/
H A Dtest_threading.py888 # Thread.start() must add lock to _shutdown_locks,
893 self.assertIn(tstate_lock, threading._shutdown_locks)
895 self.assertNotIn(tstate_lock, threading._shutdown_locks)
901 # Thread._stop() must remove tstate_lock from _shutdown_locks.
902 # Daemon threads must never add it to _shutdown_locks.
903 self.assertNotIn(tstate_lock, threading._shutdown_locks)

Completed in 5 milliseconds