MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / put

Method put

tools/python-3.11.9-amd64/Lib/multiprocessing/queues.py:86–96  ·  view source on GitHub ↗
(self, obj, block=True, timeout=None)

Source from the content-addressed store, hash-verified

84 self._poll = self._reader.poll
85
86 def put(self, obj, block=True, timeout=None):
87 if self._closed:
88 raise ValueError(f"Queue {self!r} is closed")
89 if not self._sem.acquire(block, timeout):
90 raise Full
91
92 with self._notempty:
93 if self._thread is None:
94 self._start_thread()
95 self._buffer.append(obj)
96 self._notempty.notify()
97
98 def get(self, block=True, timeout=None):
99 if self._closed:

Callers 13

put_nowaitMethod · 0.95
__delitem__Method · 0.45
__del__Method · 0.45
imapMethod · 0.45
imap_unorderedMethod · 0.45
apply_asyncMethod · 0.45
_map_asyncMethod · 0.45
_handle_workersMethod · 0.45
_handle_tasksMethod · 0.45
closeMethod · 0.45
_terminate_poolMethod · 0.45
_help_stuff_finishMethod · 0.45

Calls 4

_start_threadMethod · 0.95
acquireMethod · 0.45
appendMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected