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

Method is_set

Lib/multiprocessing/synchronize.py:341–346  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

339 self._flag = ctx.Semaphore(0)
340
341 def is_set(self):
342 with self._cond:
343 if self._flag.acquire(False):
344 self._flag.release()
345 return True
346 return False
347
348 def set(self):
349 with self._cond:

Callers 2

__repr__Method · 0.95
readyMethod · 0.45

Calls 2

acquireMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected