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

Method Pool

Lib/multiprocessing/context.py:115–120  ·  view source on GitHub ↗

Returns a process pool object

(self, processes=None, initializer=None, initargs=(),
             maxtasksperchild=None)

Source from the content-addressed store, hash-verified

113 return SimpleQueue(ctx=self.get_context())
114
115 def Pool(self, processes=None, initializer=None, initargs=(),
116 maxtasksperchild=None):
117 '''Returns a process pool object'''
118 from .pool import Pool
119 return Pool(processes, initializer, initargs, maxtasksperchild,
120 context=self.get_context())
121
122 def RawValue(self, typecode_or_type, *args):
123 '''Returns a shared object'''

Callers 1

testFunction · 0.45

Calls 2

get_contextMethod · 0.95
PoolClass · 0.70

Tested by

no test coverage detected