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
+3 -3
View File
@@ -233,10 +233,10 @@ private:
Impl* m_impl;
};
extern BackgroundJobTracker bkg_jobs_tracker;
extern BackgroundJobTracker* bkg_jobs_tracker;
#define BACKGROUND_JOB_START(x) do { bkg_jobs_tracker.start(#x); } while (0)
#define BACKGROUND_JOB_STOP(x) do { bkg_jobs_tracker.stop(#x); } while (0)
#define BACKGROUND_JOB_START(x) do { bkg_jobs_tracker->start(#x); } while (0)
#define BACKGROUND_JOB_STOP(x) do { bkg_jobs_tracker->stop(#x); } while (0)
void set_main_thread();
bool is_main_thread();