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

Method _is_parent

monai/utils/profiling.py:211–213  ·  view source on GitHub ↗

Return True if this is the parent process.

(self)

Source from the content-addressed store, hash-verified

209 self.call_selector = call_selector
210
211 def _is_parent(self):
212 """Return True if this is the parent process."""
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."""

Callers 3

_read_thread_funcMethod · 0.95
__exit__Method · 0.95
get_resultsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected