Lines Matching defs:thread
29 import _thread as thread
205 """Subclass of unittest.TestCase with thread-safe cleanup methods.
318 are caught and transferred to the main thread to alert
322 functions that rely on the client thread during setup,
335 it wants the client thread to proceed. This is useful if the
337 dependent upon the client thread during its setup routine."""
359 self.client_thread = thread.start_new_thread(
399 thread.exit()
534 # Indicate explicitly we're ready for the client thread to
656 # Indicate explicitly we're ready for the client thread to
4574 # Use a thread to complete the connection, but wait for it to
4576 # thread to accept the signal.
5078 # The client thread can't skip directly - the SkipTest exception
6615 thread = threading.Thread(target=run, args=(sock, ))
6616 thread.start()
6617 self.addCleanup(thread.join, self.timeout)