From 6297c903c612673e7b5409c5825807b31503f9ed Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Mon, 1 Jun 2026 12:40:18 -0400 Subject: [PATCH] Explicitly initialize std::atomic. --- arbiter/util/http.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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