Lines Matching defs:join
1045 # After calling ._stop(), .is_alive() returns False and .join() returns
1050 # that's detected by our ._wait_for_tstate_lock(), called by .join()
1053 # .join() calls), and they're not serialized. That's harmless -
1080 def join(self, timeout=None):
1083 This blocks the calling thread until the thread whose join() method is
1089 (or fractions thereof). As join() always returns None, you must call
1090 is_alive() after join() to decide whether a timeout happened -- if the
1091 thread is still alive, the join() call timed out.
1096 A thread can be join()ed many times.
1098 join() raises a RuntimeError if an attempt is made to join the current
1099 thread as that would cause a deadlock. It is also an error to join() a
1107 raise RuntimeError("cannot join thread before it is started")
1109 raise RuntimeError("cannot join current thread")
1115 # historically .join(timeout=x) for x<0 has acted as if timeout=0
1440 def join(self, timeout=None):
1441 assert False, "cannot join a dummy thread"
1538 # Obscure: other threads may be waiting to join _main_thread. That's
1582 # mimic Thread.join()
1636 # because someone may join() them.