Lines Matching defs:threading
43 import threading
95 # Since multiprocessing.Process has the same API than threading.Thread
420 @unittest.skipUnless(threading._HAVE_THREAD_NATIVE_ID, "needs native_id")
425 current_mainthread_native_id = threading.main_thread().native_id
439 mainthread_native_id = threading.main_thread().native_id
715 threading.Thread(target=func1).start()
716 threading.Thread(target=func2, daemon=True).start()
1289 self.assertRaises((ValueError, threading.ThreadError), lock.release)
1402 p = threading.Thread(target=self.f, args=(cond, sleeping, woken))
1450 t = threading.Thread(target=self.f,
1475 t = threading.Thread(target=self.f, args=(cond, sleeping, woken))
1511 t = threading.Thread(target=self.f, args=(cond, sleeping, woken))
1668 # work with threading._Event objects. is_set == isSet
1671 # Removed, threading.Event.wait() will return the value of the __flag
1715 # Many of the tests for threading.Barrier use a list as an atomic
1910 except threading.BrokenBarrierError:
1939 except threading.BrokenBarrierError:
1967 except threading.BrokenBarrierError:
2003 except threading.BrokenBarrierError:
2022 except threading.BrokenBarrierError:
4460 threads = [threading.Thread(target=run_finalizers),
4461 threading.Thread(target=make_finalizers)]
5821 threading._dangling.copy())
5835 threads = set(threading._dangling) - set(cls.dangling[1])
5988 dangling[1] = threading._dangling.copy()
6022 threads = set(threading._dangling) - set(dangling[1])