Lines Matching refs:Thread
56 class TestThread(threading.Thread):
58 threading.Thread.__init__(self, name=name)
104 thread = threading.Thread(name="myname1")
108 thread = threading.Thread(name=123)
112 thread = threading.Thread(target=func, name="myname2")
116 thread = threading.Thread(name="")
117 self.assertEqual(thread.name, "Thread-2")
120 thread = threading.Thread()
121 self.assertEqual(thread.name, "Thread-3")
124 thread = threading.Thread(target=func)
125 self.assertEqual(thread.name, "Thread-5 (func)")
150 t = threading.Thread(target=target, args=args)
301 class Worker(threading.Thread):
355 t = threading.Thread(target=lambda: None)
359 "Failed to cleanup _limbo map on failure of Thread.start().")
409 t = threading.Thread(target=killer)
434 threading.Thread(target=child).start()
449 t = threading.Thread(target=lambda: None)
461 # The links in this refcycle from Thread back to self
464 self.thread = threading.Thread(target=self._run,
494 t = threading.Thread()
523 t = threading.Thread()
529 t = threading.Thread()
531 t = threading.Thread(daemon=False)
533 t = threading.Thread(daemon=True)
602 t = threading.Thread(target=lambda: None)
621 th = threading.Thread(target=f)
667 th = threading.Thread(target=func)
674 self.assertEqual(data, "Thread-1 (func)\nTrue\nTrue\n")
734 threading.Thread(target=f).start()
741 # Test an implementation detail of Thread objects.
751 t = threading.Thread(target=f)
776 # Verify that "stopped" shows up in repr(Thread) appropriately.
784 t = threading.Thread(target=f)
806 threads = [threading.Thread(target=bs.acquire)
812 threads = [threading.Thread(target=bs.release)
886 thread = threading.Thread(target=event.wait, daemon=daemon)
888 # Thread.start() must add lock to _shutdown_locks,
901 # Thread._stop() must remove tstate_lock from _shutdown_locks.
936 thread = threading.Thread(target=target)
946 threading.Thread(target=noop).start()
947 # Thread.join() is not called
1016 t = threading.Thread(target=joiningfunc,
1038 t = threading.Thread(target=joiningfunc,
1049 # In the forked process, the main Thread object must be marked as stopped.
1063 t = threading.Thread(target=joiningfunc,
1069 w = threading.Thread(target=worker)
1102 new_thread = threading.Thread(target=random_io)
1133 t = threading.Thread(target=do_fork_and_wait)
1147 t = threading.Thread(target=lambda : time.sleep(0.3))
1194 threading.Thread(target=f).start()
1231 threading.Thread(target=f).start()
1250 threading.Thread(target=f, daemon=True).start()
1264 # A RuntimeError should be raised if Thread.start() is called
1267 thread = threading.Thread()
1277 thread = threading.Thread()
1281 thread = threading.Thread()
1309 w = threading.Thread(target=outer)
1334 t = threading.Thread(target=run)
1362 t = threading.Thread(target=run)
1392 t = threading.Thread(target=run)
1407 class Issue27558(threading.Thread):
1433 threading.Thread(target=modify_file)
1441 class ThreadRunFail(threading.Thread):
1485 class ThreadExit(threading.Thread):
1658 t = threading.Thread(target=call_interrupt)
1700 t = threading.Thread(target=worker,args=(started, cont, interrupted))