From 41af76bed89c442e1dc8975186fafbe864238943 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 15 Jul 2022 15:13:03 -0400 Subject: [PATCH] Fix variable name. --- Concurrency/AsyncTaskQueue.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Concurrency/AsyncTaskQueue.hpp b/Concurrency/AsyncTaskQueue.hpp index da56e4388..c8b70be20 100644 --- a/Concurrency/AsyncTaskQueue.hpp +++ b/Concurrency/AsyncTaskQueue.hpp @@ -73,7 +73,7 @@ template class TaskQueue: [this] { ActionVector actions; - while(!should_quit) { + while(!should_quit_) { // Wait for new actions to be signalled, and grab them. std::unique_lock lock(condition_mutex_); while(actions_.empty()) { @@ -127,7 +127,7 @@ template class TaskQueue: /// The queue cannot be restarted; this is a destructive action. void stop() { if(thread_.joinable()) { - should_quit = true; + should_quit_ = true; enqueue([] {}); if constexpr (!perform_automatically) { perform(); @@ -168,7 +168,7 @@ template class TaskQueue: ActionVector actions_; // Necessary synchronisation parts. - std::atomic should_quit = false; + std::atomic should_quit_ = false; std::mutex condition_mutex_; std::condition_variable condition_;