MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _is_thread_active

Method _is_thread_active

monai/utils/profiling.py:215–217  ·  view source on GitHub ↗

Return True if the read thread should be still active.

(self)

Source from the content-addressed store, hash-verified

213 return os.getpid() == self.parent_pid
214
215 def _is_thread_active(self):
216 """Return True if the read thread should be still active."""
217 return self.read_thread is not None or not self.queue.empty()
218
219 def _read_thread_func(self):
220 """Read results from the queue and add to self.results in a thread stared by `__enter__`."""

Callers 1

_read_thread_funcMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected