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

Method __init__

Lib/multiprocessing/queues.py:316–319  ·  view source on GitHub ↗
(self, maxsize=0, *, ctx)

Source from the content-addressed store, hash-verified

314class JoinableQueue(Queue):
315
316 def __init__(self, maxsize=0, *, ctx):
317 Queue.__init__(self, maxsize, ctx=ctx)
318 self._unfinished_tasks = ctx.Semaphore(0)
319 self._cond = ctx.Condition()
320
321 def __getstate__(self):
322 return Queue.__getstate__(self) + (self._cond, self._unfinished_tasks)

Callers

nothing calls this directly

Calls 3

SemaphoreMethod · 0.80
__init__Method · 0.45
ConditionMethod · 0.45

Tested by

no test coverage detected