diff --git a/arbiter/util/http.hpp b/arbiter/util/http.hpp index a93f418..858b980 100644 --- a/arbiter/util/http.hpp +++ b/arbiter/util/http.hpp @@ -108,7 +108,9 @@ class ARBITER_DLL Pool std::vector m_curls; std::thread m_runner; std::size_t m_retry; - std::atomic m_stop; + // The explicit initialization is necessary on Linux for C++17. + // See the "Note" here: https://en.cppreference.com/cpp/atomic/atomic/atomic + std::atomic m_stop = false; std::mutex m_mutex; // Provide notification between a thread waiting on a Curl and one