diff --git a/utils/threadpool/threadpool.h b/utils/threadpool/threadpool.h index d12d15390..ea9f89da6 100644 --- a/utils/threadpool/threadpool.h +++ b/utils/threadpool/threadpool.h @@ -350,7 +350,7 @@ class ThreadPool boost::condition_variable fNeedThread; // triggered when a thread is needed ThreadPoolGroup fThreads; - bool fStop; + std::atomic fStop = false; long fGeneralErrors; long fFunctorErrors; uint32_t waitingFunctorsSize;