Fixed global init/shutdown order

This commit is contained in:
SChernykh
2024-12-03 21:05:27 +01:00
parent ecdaa83669
commit fb8e2a71e0
15 changed files with 130 additions and 74 deletions

View File

@@ -452,7 +452,7 @@ void BackgroundJobTracker::print_status()
m_impl->print_status();
}
BackgroundJobTracker bkg_jobs_tracker;
BackgroundJobTracker* bkg_jobs_tracker = nullptr;
static thread_local bool main_thread = false;
void set_main_thread() { main_thread = true; }