From 9f95ebe3b192a69ac98d678936a0de4cd8b9fd63 Mon Sep 17 00:00:00 2001 From: surtur Date: Sat, 22 Jan 2022 21:33:49 +0100 Subject: [PATCH] pool: make all_ok atomic --- pool.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pool.cpp b/pool.cpp index 4d4110f..c6949bb 100644 --- a/pool.cpp +++ b/pool.cpp @@ -5,6 +5,7 @@ #include +#include #include #include #include @@ -34,7 +35,7 @@ auto Pool::add_entropy(const unsigned int& source, const size_t event_size{sizeof(char) * event.size()}; const size_t max_event_size{32}; std::string event_str; - bool all_ok{false}; + std::atomic all_ok{false}; fmt::print("\tevent_size (bytes): {}\n", event_size); try {