Stop the thread
(self,timeout=None)
| 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 | |
| 48 | if __name__ == "__main__": |
| 49 | testthread = TestThread() |
no test coverage detected