Simplify mutex locking scheme (lock at start, unlock at end)

This commit is contained in:
2025-12-12 03:08:56 +00:00
parent 00858cf74f
commit f70517cf41
3 changed files with 5 additions and 10 deletions

View File

@@ -22,8 +22,7 @@ namespace cw::state
std::queue<u64> queue;
bool pause_work, stop_work;
std::mutex mutex_queue;
std::mutex mutex_allocator;
std::mutex mutex;
State(void) {};
};