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

Method Manager

Lib/multiprocessing/context.py:49–58  ·  view source on GitHub ↗

Returns a manager associated with a running server process The managers methods such as `Lock()`, `Condition()` and `Queue()` can be used to create shared objects.

(self)

Source from the content-addressed store, hash-verified

47 return num
48
49 def Manager(self):
50 '''Returns a manager associated with a running server process
51
52 The managers methods such as `Lock()`, `Condition()` and `Queue()`
53 can be used to create shared objects.
54 '''
55 from .managers import SyncManager
56 m = SyncManager(ctx=self.get_context())
57 m.start()
58 return m
59
60 def Pipe(self, duplex=True):
61 '''Returns two connection object connected by a pipe'''

Callers 14

test_repr_lockMethod · 0.80
test_repr_rlockMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80
setUpClassMethod · 0.80
test_fork_asyncio_runMethod · 0.80

Calls 3

get_contextMethod · 0.95
SyncManagerClass · 0.70
startMethod · 0.45

Tested by 13

test_repr_lockMethod · 0.64
test_repr_rlockMethod · 0.64
setUpMethod · 0.64
setUpMethod · 0.64
setUpClassMethod · 0.64
test_fork_asyncio_runMethod · 0.64