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

Function preload_user_plugins_async

src/python/runner.cpp:765–778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763 }
764
765 void preload_user_plugins_async() {
766 if (!env_flag_enabled("LFS_PLUGIN_AUTOLOAD", true)) {
767 return;
768 }
769
770 bool expected = false;
771 if (!g_plugin_preload_scheduled.compare_exchange_strong(expected, true, std::memory_order_acq_rel)) {
772 return;
773 }
774
775 g_plugin_preload_thread.thread = std::thread([]() {
776 ensure_plugins_loaded();
777 });
778 }
779
780 bool start_debugpy(const int port) {
781 ensure_initialized();

Callers 1

initializeMethod · 0.85

Calls 2

ensure_plugins_loadedFunction · 0.85
env_flag_enabledFunction · 0.70

Tested by

no test coverage detected