pool: make all_ok atomic
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2022-01-22 21:33:49 +01:00
parent e452a63b4a
commit 9f95ebe3b1
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

View File

@ -5,6 +5,7 @@
#include <fmt/core.h>
#include <atomic>
#include <climits>
#include <cstddef>
#include <mutex>
@ -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<bool> all_ok{false};
fmt::print("\tevent_size (bytes): {}\n", event_size);
try {