Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __init__
Method
__init__
Lib/multiprocessing/synchronize.py:330–332 ·
view source on GitHub ↗
(self, *, ctx)
Source
from the content-addressed store, hash-verified
328
class
Event(object):
329
330
def
__init__(self, *, ctx):
331
self._cond = ctx.Condition(ctx.Lock())
332
self._flag = ctx.Semaphore(0)
333
334
def
is_set(self):
335
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