Returns: bool: whether the thread is stopped or not
(self)
| 45 | self._stop_evt.set() |
| 46 | |
| 47 | def stopped(self): |
| 48 | """ |
| 49 | Returns: |
| 50 | bool: whether the thread is stopped or not |
| 51 | """ |
| 52 | return self._stop_evt.isSet() |
| 53 | |
| 54 | def queue_put_stoppable(self, q, obj): |
| 55 | """ Put obj to queue, but will give up when the thread is stopped""" |
no outgoing calls
no test coverage detected