CMakeLists.txt
1.21 KB
-
Fix GIL release and acquire when embedding the interpreter · 2d6116b5
Fixes a race condition when multiple threads try to acquire the GIL before `detail::internals` have been initialized. `gil_scoped_release` is now tasked with initializing `internals` (guaranteed single-threaded) to ensure the safety of subsequent `acquire` calls from multiple threads.
Dean Moldovan committed