From 5f6ff55e97104e46c1b5c2c94b39ea0fca35ca7c Mon Sep 17 00:00:00 2001 From: Paul Cristian Sarbu Date: Thu, 7 Mar 2024 15:44:28 +0100 Subject: just: Replace singletons for progress tracking and statistics... ...with regular instances that have controlled life-times. This avoids race conditions in tracking and reporting the results of analysis and build, as the serve endpoint can orchestrate multiple builds at the same time asynchronously. As a bonus side-effect this also ensures the correctness of the progress reporting per orchestrated build. --- src/buildtool/progress_reporting/progress.hpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/buildtool/progress_reporting/progress.hpp') diff --git a/src/buildtool/progress_reporting/progress.hpp b/src/buildtool/progress_reporting/progress.hpp index 43cdc7cc..d9b3aa8e 100644 --- a/src/buildtool/progress_reporting/progress.hpp +++ b/src/buildtool/progress_reporting/progress.hpp @@ -26,11 +26,6 @@ class Progress { public: - [[nodiscard]] static auto Instance() noexcept -> Progress& { - static Progress instance{}; - return instance; - } - [[nodiscard]] auto TaskTracker() noexcept -> TaskTracker& { return task_tracker_; } -- cgit v1.2.3