MCPcopy Index your code
hub / github.com/RustPython/RustPython / __init__

Method __init__

Lib/multiprocessing/synchronize.py:372–379  ·  view source on GitHub ↗
(self, parties, action=None, timeout=None, *, ctx)

Source from the content-addressed store, hash-verified

370class Barrier(threading.Barrier):
371
372 def __init__(self, parties, action=None, timeout=None, *, ctx):
373 import struct
374 from .heap import BufferWrapper
375 wrapper = BufferWrapper(struct.calcsize('i') * 2)
376 cond = ctx.Condition()
377 self.__setstate__((parties, action, timeout, cond, wrapper))
378 self._state = 0
379 self._count = 0
380
381 def __setstate__(self, state):
382 (self._parties, self._action, self._timeout,

Callers

nothing calls this directly

Calls 3

__setstate__Method · 0.95
BufferWrapperClass · 0.85
ConditionMethod · 0.45

Tested by

no test coverage detected