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

Method __init__

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

Source from the content-addressed store, hash-verified

1345 _Server = SharedMemoryServer
1346
1347 def __init__(self, *args, **kwargs):
1348 if os.name == "posix":
1349 # bpo-36867: Ensure the resource_tracker is running before
1350 # launching the manager process, so that concurrent
1351 # shared_memory manipulation both in the manager and in the
1352 # current process does not create two resource_tracker
1353 # processes.
1354 from . import resource_tracker
1355 resource_tracker.ensure_running()
1356 BaseManager.__init__(self, *args, **kwargs)
1357 util.debug(f"{self.__class__.__name__} created by pid {getpid()}")
1358
1359 def __del__(self):
1360 util.debug(f"{self.__class__.__name__}.__del__ by pid {getpid()}")

Callers

nothing calls this directly

Calls 4

getpidFunction · 0.90
ensure_runningMethod · 0.45
__init__Method · 0.45
debugMethod · 0.45

Tested by

no test coverage detected