Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
ready
Method · 0.45
Calls
2
acquire
Method · 0.45
release
Method · 0.45
Tested by
no test coverage detected