MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_alive

Method is_alive

Lib/multiprocessing/process.py:153–170  ·  view source on GitHub ↗

Return whether process is alive

(self)

Source from the content-addressed store, hash-verified

151 _children.discard(self)
152
153 def is_alive(self):
154 '''
155 Return whether process is alive
156 '''
157 self._check_closed()
158 if self is _current_process:
159 return True
160 assert self._parent_pid == os.getpid(), 'can only test a child process'
161
162 if self._popen is None:
163 return False
164
165 returncode = self._popen.poll()
166 if returncode is None:
167 return True
168 else:
169 _children.discard(self)
170 return False
171
172 def close(self):
173 '''

Callers 9

__del__Method · 0.45
get_n_children_aliveMethod · 0.45
joinMethod · 0.45
_finalize_managerMethod · 0.45
_help_stuff_finishMethod · 0.45
_terminate_poolMethod · 0.45
stopMethod · 0.45
exitcodeMethod · 0.45
active_childrenFunction · 0.45

Calls 3

_check_closedMethod · 0.95
pollMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected