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

Function set_main_thread_state

src/python/python_runtime.cpp:613–615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611 bool is_gil_state_ready() { return g_gil_state_ready.load(std::memory_order_acquire); }
612
613 void set_main_thread_state(void* state) {
614 g_main_thread_state.store(static_cast<PyThreadState*>(state), std::memory_order_release);
615 }
616
617 void* get_main_thread_state() {
618 return g_main_thread_state.load(std::memory_order_acquire);

Callers 1

ensure_initializedFunction · 0.85

Calls 1

storeMethod · 0.45

Tested by

no test coverage detected