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

Method _after_fork

Lib/threading.py:948–960  ·  view source on GitHub ↗
(self, new_ident=None)

Source from the content-addressed store, hash-verified

946 _dangling.add(self)
947
948 def _after_fork(self, new_ident=None):
949 # Private! Called by threading._after_fork().
950 self._started._at_fork_reinit()
951 if new_ident is not None:
952 # This thread is alive.
953 self._ident = new_ident
954 assert self._os_thread_handle.ident == new_ident
955 if _HAVE_THREAD_NATIVE_ID:
956 self._set_native_id()
957 else:
958 # Otherwise, the thread is dead, Jim. _PyThread_AfterFork()
959 # already marked our handle done.
960 pass
961
962 def __repr__(self):
963 assert self._initialized, "Thread.__init__() was not called"

Callers 2

_after_forkMethod · 0.45
_after_forkFunction · 0.45

Calls 2

_set_native_idMethod · 0.95
_at_fork_reinitMethod · 0.45

Tested by

no test coverage detected