From 014821ceb5bf6eeb87e649703051948dbde80448 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 28 Nov 2025 17:22:39 +0000 Subject: [PATCH] Added booleans for thread workers to look at when running pause_work temporarily stops work, but should keep the thread alive. stop_work should kill the thread. --- src/state.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/state.hpp b/src/state.hpp index aa14e36..669eac3 100644 --- a/src/state.hpp +++ b/src/state.hpp @@ -21,6 +21,7 @@ namespace cw::state cw::node::NodeAllocator allocator; std::queue queue; + bool pause_work, stop_work; std::mutex mutex_queue; std::mutex mutex_allocator;