mirror of
https://github.com/python/cpython.git
synced 2026-06-23 03:23:38 -04:00
1f72fb5447
Split `_PyThreadState_DeleteExcept` into two functions: - `_PyThreadState_RemoveExcept` removes all thread states other than one passed as an argument. It returns the removed thread states as a linked list. - `_PyThreadState_DeleteList` deletes those dead thread states. It may call destructors, so we want to "start the world" before calling `_PyThreadState_DeleteList` to avoid potential deadlocks.
Source files for standard library extension modules, and former extension modules that are now builtin modules.