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

Method notify_all

tools/python-3.11.9-amd64/Lib/asyncio/locks.py:322–328  ·  view source on GitHub ↗

Wake up all threads waiting on this condition. This method acts like notify(), but wakes up all waiting threads instead of one. If the calling thread has not acquired the lock when this method is called, a RuntimeError is raised.

(self)

Source from the content-addressed store, hash-verified

320 fut.set_result(False)
321
322 def notify_all(self):
323 """Wake up all threads waiting on this condition. This method acts
324 like notify(), but wakes up all waiting threads instead of one. If the
325 calling thread has not acquired the lock when this method is called,
326 a RuntimeError is raised.
327 """
328 self.notify(len(self._waiters))
329
330
331class Semaphore(_ContextManagerMixin, mixins._LoopBoundMixin):

Callers 7

_releaseMethod · 0.45
_exitMethod · 0.45
resetMethod · 0.45
abortMethod · 0.45
cancelMethod · 0.45
set_resultMethod · 0.45
set_exceptionMethod · 0.45

Calls 1

notifyMethod · 0.95

Tested by

no test coverage detected