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

Method weakref_cb

Lib/concurrent/futures/process.py:298–303  ·  view source on GitHub ↗
(_,
                       thread_wakeup=self.thread_wakeup,
                       mp_util_debug=mp.util.debug)

Source from the content-addressed store, hash-verified

296 # will wake up the queue management thread so that it can terminate
297 # if there is no pending work item.
298 def weakref_cb(_,
299 thread_wakeup=self.thread_wakeup,
300 mp_util_debug=mp.util.debug):
301 mp_util_debug('Executor collected: triggering callback for'
302 ' QueueManager wakeup')
303 thread_wakeup.wakeup()
304
305 self.executor_reference = weakref.ref(executor, weakref_cb)
306

Callers

nothing calls this directly

Calls 1

wakeupMethod · 0.45

Tested by

no test coverage detected