MCPcopy 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

335class 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

LockMethod · 0.80
SemaphoreMethod · 0.80
ConditionMethod · 0.45

Tested by

no test coverage detected