Lines Matching refs:Worker
209 class Worker(threading.Thread):
222 t = Worker()
226 print " started worker thread"
234 # Now raise an exception in the worker thread.
236 print " waiting for worker thread to get started"
240 print " verifying worker hasn't exited"
243 print " attempting to raise asynch exception in worker"
247 print " waiting for worker to say it caught the exception"
251 print " all OK -- joining worker"
450 # #12316 and #11870), and fork() from a worker thread is known to trigger
507 # Like the test above, but fork() was called from a worker thread
511 def worker():
523 w = threading.Thread(target=worker)
549 # - The child thread forks. (See LOCK HELD and WORKER THREAD FORKS
565 def worker():
579 w = threading.Thread(target=worker)
598 time.sleep(0.01) # WORKER THREAD FORKS HERE
628 def worker():
639 print('end of worker thread')
644 w = threading.Thread(target=worker)
648 # causes the worker to fork. At this point, the problematic waiter
664 output = "end of worker thread\nend of main thread\n"