mirror of
https://github.com/python/cpython.git
synced 2026-08-09 09:16:42 +08:00
This adds a stop the world pause to make the two functions thread-safe when the GIL is disabled in the free-threaded build. Additionally, the main test thread may call `sys._current_exceptions()` as soon as `g_raised.set()` is called. The background thread may not yet reach the `leave_g.wait()` line.
Miscellaneous source files for the main Python shared library