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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user