| 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(); |
no test coverage detected