• Dean Moldovan's avatar
    Fix GIL release and acquire when embedding the interpreter · 2d6116b5
    Dean Moldovan authored
    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.
    2d6116b5
test_interpreter.cpp 7.49 KB