Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __init__
Method
__init__
Lib/multiprocessing/synchronize.py:337–339 ·
view source on GitHub ↗
(self, *, ctx)
Source
from the content-addressed store, hash-verified
335
class
Event(object):
336
337
def
__init__(self, *, ctx):
338
self._cond = ctx.Condition(ctx.Lock())
339
self._flag = ctx.Semaphore(0)
340
341
def
is_set(self):
342
with
self._cond:
Callers
nothing calls this directly
Calls
3
Lock
Method · 0.80
Semaphore
Method · 0.80
Condition
Method · 0.45
Tested by
no test coverage detected