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

Method __init__

Lib/multiprocessing/managers.py:1388–1398  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1386 _Server = SharedMemoryServer
1387
1388 def __init__(self, *args, **kwargs):
1389 if os.name == "posix":
1390 # bpo-36867: Ensure the resource_tracker is running before
1391 # launching the manager process, so that concurrent
1392 # shared_memory manipulation both in the manager and in the
1393 # current process does not create two resource_tracker
1394 # processes.
1395 from . import resource_tracker
1396 resource_tracker.ensure_running()
1397 BaseManager.__init__(self, *args, **kwargs)
1398 util.debug(f"{self.__class__.__name__} created by pid {getpid()}")
1399
1400 def __del__(self):
1401 util.debug(f"{self.__class__.__name__}.__del__ by pid {getpid()}")

Callers

nothing calls this directly

Calls 3

ensure_runningMethod · 0.45
__init__Method · 0.45
debugMethod · 0.45

Tested by

no test coverage detected