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

Function get_main_thread_state

src/python/python_runtime.cpp:617–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615 }
616
617 void* get_main_thread_state() {
618 return g_main_thread_state.load(std::memory_order_acquire);
619 }
620
621 void acquire_gil_main_thread() {
622 PyThreadState* state = g_main_thread_state.exchange(nullptr, std::memory_order_acq_rel);

Callers 3

finalizeFunction · 0.85
was_python_usedFunction · 0.85
shutdownMethod · 0.85

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected