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

Method __del__

tensorpack/dataflow/parallel_map.py:202–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 yield from super(MultiThreadMapData, self).__iter__()
201
202 def __del__(self):
203 if self._evt is not None:
204 self._evt.set()
205 for p in self._threads:
206 p.stop()
207 p.join(timeout=5.0)
208 # if p.is_alive():
209 # logger.warn("Cannot join thread {}.".format(p.name))
210
211
212class MultiProcessMapDataZMQ(_ParallelMapData, _MultiProcessZMQDataFlow):

Callers

nothing calls this directly

Calls 2

stopMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected