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

Function _python_exit

Lib/concurrent/futures/process.py:98–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97
98def _python_exit():
99 global _global_shutdown
100 _global_shutdown = True
101 items = list(_threads_wakeups.items())
102 for _, thread_wakeup in items:
103 # call not protected by ProcessPoolExecutor._shutdown_lock
104 thread_wakeup.wakeup()
105 for t, _ in items:
106 t.join()
107
108# Register for `_python_exit()` to be called just before joining all
109# non-daemon threads. This is used instead of `atexit.register()` for

Callers

nothing calls this directly

Calls 4

listClass · 0.85
itemsMethod · 0.45
wakeupMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…