MCPcopy Index your code
hub / github.com/python/cpython / __init__

Method __init__

Lib/multiprocessing/util.py:440–444  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

438
439class ForkAwareThreadLock(object):
440 def __init__(self):
441 self._lock = threading.Lock()
442 self.acquire = self._lock.acquire
443 self.release = self._lock.release
444 register_after_fork(self, ForkAwareThreadLock._at_fork_reinit)
445
446 def _at_fork_reinit(self):
447 self._lock._at_fork_reinit()

Callers

nothing calls this directly

Calls 2

register_after_forkFunction · 0.85
LockMethod · 0.80

Tested by

no test coverage detected