From 78078f4ef37ab5f87f5f0a05d3085f43bf692ba1 Mon Sep 17 00:00:00 2001 From: Dhanya Maliakal Date: Thu, 23 Mar 2017 11:55:56 +0100 Subject: [PATCH] esrf suggestion for volatile in multithread threadpool --- slsDetectorSoftware/threadFiles/ThreadPool.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/threadFiles/ThreadPool.h b/slsDetectorSoftware/threadFiles/ThreadPool.h index 88422973c..9412acdbf 100644 --- a/slsDetectorSoftware/threadFiles/ThreadPool.h +++ b/slsDetectorSoftware/threadFiles/ThreadPool.h @@ -38,8 +38,8 @@ private: std::deque m_tasks; volatile int m_pool_state; - bool m_tasks_loaded; - bool thread_started; + volatile bool m_tasks_loaded; + volatile bool thread_started; int current_thread_number; //volatile uint64_t tasks_done_mask;