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

Method Barrier

Lib/multiprocessing/context.py:95–98  ·  view source on GitHub ↗

Returns a barrier object

(self, parties, action=None, timeout=None)

Source from the content-addressed store, hash-verified

93 return Event(ctx=self.get_context())
94
95 def Barrier(self, parties, action=None, timeout=None):
96 '''Returns a barrier object'''
97 from .synchronize import Barrier
98 return Barrier(parties, action, timeout, ctx=self.get_context())
99
100 def Queue(self, maxsize=0):
101 '''Returns a queue object'''

Callers 15

test_free_threadingMethod · 0.80
checkMethod · 0.80
checkMethod · 0.80
setUpMethod · 0.80
test_actionMethod · 0.80
test_abort_and_resetMethod · 0.80
test_default_timeoutMethod · 0.80
test_single_threadMethod · 0.80

Calls 2

get_contextMethod · 0.95
BarrierClass · 0.70

Tested by 15

test_free_threadingMethod · 0.64
checkMethod · 0.64
checkMethod · 0.64
setUpMethod · 0.64
test_actionMethod · 0.64
test_abort_and_resetMethod · 0.64
test_default_timeoutMethod · 0.64
test_single_threadMethod · 0.64