MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / stopped

Method stopped

tensorpack/utils/concurrency.py:47–52  ·  view source on GitHub ↗

Returns: bool: whether the thread is stopped or not

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 10

queue_put_stoppableMethod · 0.95
queue_get_stoppableMethod · 0.95
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
runMethod · 0.80
funcMethod · 0.80
runMethod · 0.80
funcMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected