From 06deab6ef1438312c60041a18fab0057b4258a54 Mon Sep 17 00:00:00 2001 From: surtur Date: Sun, 23 Jan 2022 20:00:30 +0100 Subject: [PATCH] chore(fortuna): make sync_point latch private --- fortuna.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fortuna.h b/fortuna.h index 04c7745..1febc8d 100644 --- a/fortuna.h +++ b/fortuna.h @@ -26,7 +26,6 @@ public: std::mutex print_mtx; std::thread th_sfm; std::thread th_urandom; - std::latch sync_point{1}; // wait for init before spawning the threads Fortuna(); ~Fortuna() noexcept; @@ -114,6 +113,8 @@ public: std::shared_ptr _p_accumulator{ std::make_shared()}; + std::latch sync_point{1}; // wait for init before spawning the threads + }; // class Fortuna } // namespace fortuna