MCPcopy Index your code
hub / github.com/brmmm3/fastthreadpool / _join_thread

Method _join_thread

fastthreadpool/fastthreadpool.py:768–780  ·  view source on GitHub ↗
(self, thread, t)

Source from the content-addressed store, hash-verified

766 return self._idle_event.wait(timeout)
767
768 def _join_thread(self, thread, t):
769 #c cdef int cnt
770 while True:
771 try:
772 thread.join(1.0)
773 if not thread.is_alive():
774 return thread
775 if t is not None and (_time() > t):
776 return None
777 except KeyboardInterrupt:
778 self._shutdown_children = True
779 self._shutdown = True
780 raise
781
782 #c cpdef cleanup_children(self):
783 def cleanup_children(self): #p

Callers 1

shutdownMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected