MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / acquire_gil_main_thread

Function acquire_gil_main_thread

src/python/python_runtime.cpp:621–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

619 }
620
621 void acquire_gil_main_thread() {
622 PyThreadState* state = g_main_thread_state.exchange(nullptr, std::memory_order_acq_rel);
623 if (state) {
624 PyEval_RestoreThread(state);
625 }
626 }
627
628 void release_gil_main_thread() {
629 PyThreadState* state = PyEval_SaveThread();

Callers 2

finalizeFunction · 0.85
shutdownMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected