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

Method BoundedSemaphore

Lib/multiprocessing/context.py:85–88  ·  view source on GitHub ↗

Returns a bounded semaphore object

(self, value=1)

Source from the content-addressed store, hash-verified

83 return Semaphore(value, ctx=self.get_context())
84
85 def BoundedSemaphore(self, value=1):
86 '''Returns a bounded semaphore object'''
87 from .synchronize import BoundedSemaphore
88 return BoundedSemaphore(value, ctx=self.get_context())
89
90 def Event(self):
91 '''Returns an event object'''

Callers 10

test_various_opsMethod · 0.80
__init__Method · 0.80
_llvm.pyFile · 0.80

Calls 2

get_contextMethod · 0.95
BoundedSemaphoreClass · 0.70