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.
This commit is contained in:
2025-11-28 17:22:39 +00:00
parent 1bd8a9f7b2
commit 014821ceb5

View File

@@ -21,6 +21,7 @@ namespace cw::state
cw::node::NodeAllocator allocator;
std::queue<u64> queue;
bool pause_work, stop_work;
std::mutex mutex_queue;
std::mutex mutex_allocator;