MCPcopy Create free account
hub / github.com/ActiveState/code / join

Method join

recipes/Python/65448_Thread_Control_Idiom/recipe-65448.py:41–46  ·  view source on GitHub ↗

Stop the thread

(self,timeout=None)

Source from the content-addressed store, hash-verified

39 print "%s ends" % (self.getName(),)
40
41 def join(self,timeout=None):
42 """
43 Stop the thread
44 """
45 self._stopevent.set()
46 threading.Thread.join(self, timeout)
47
48if __name__ == "__main__":
49 testthread = TestThread()

Callers 15

reindentFunction · 0.45
killMethod · 0.45
printListFunction · 0.45
__init__Method · 0.45
LL2XMLFunction · 0.45
__repr__Method · 0.45
__getitem__Method · 0.45
printListFunction · 0.45
recipe-65448.pyFile · 0.45
binipdisplayFunction · 0.45
dottedQuadToNumFunction · 0.45
numToDottedQuadFunction · 0.45

Calls 1

setMethod · 0.45

Tested by

no test coverage detected