mirror of
https://github.com/python/cpython.git
synced 2026-06-23 03:23:38 -04:00
01bd74eadb
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