Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ empty
Method
empty
Lib/multiprocessing/queues.py:126–127 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
124
return
self._maxsize - self._sem.get_value()
125
126
def
empty(self):
127
return
not self._poll()
128
129
def
full(self):
130
return
self._sem._semlock._is_zero()
Callers
1
_wait_for_updates
Method · 0.45
Calls
1
_poll
Method · 0.45
Tested by
no test coverage detected