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

Method Condition

Lib/multiprocessing/context.py:75–78  ·  view source on GitHub ↗

Returns a condition object

(self, lock=None)

Source from the content-addressed store, hash-verified

73 return RLock(ctx=self.get_context())
74
75 def Condition(self, lock=None):
76 '''Returns a condition object'''
77 from .synchronize import Condition
78 return Condition(lock, ctx=self.get_context())
79
80 def Semaphore(self, value=1):
81 '''Returns a semaphore object'''

Callers 5

_resetMethod · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls 2

get_contextMethod · 0.95
ConditionClass · 0.70

Tested by

no test coverage detected