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

Function _python_exit

Lib/concurrent/futures/thread.py:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21_global_shutdown_lock = threading.Lock()
22
23def _python_exit():
24 global _shutdown
25 with _global_shutdown_lock:
26 _shutdown = True
27 items = list(_threads_queues.items())
28 for t, q in items:
29 q.put(None)
30 for t, q in items:
31 t.join()
32
33# Register for `_python_exit()` to be called just before joining all
34# non-daemon threads. This is used instead of `atexit.register()` for

Callers

nothing calls this directly

Calls 4

listClass · 0.85
itemsMethod · 0.45
putMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…