Compare unsafe_reset_internals_for_single_interpreter in test_subinterpreter.cpp.
| 10 | // Compare unsafe_reset_internals_for_single_interpreter in |
| 11 | // test_subinterpreter.cpp. |
| 12 | void unsafe_reset_local_internals() { |
| 13 | // NOTE: This code is NOT SAFE unless the caller guarantees no other threads are alive |
| 14 | // NOTE: This code is tied to the precise implementation of the internals holder |
| 15 | |
| 16 | py::detail::get_local_internals_pp_manager().unref(); |
| 17 | py::detail::get_local_internals(); |
| 18 | } |
| 19 | } // namespace |
| 20 | |
| 21 | PYBIND11_MODULE(external_module, |
no test coverage detected