esrf suggestion for volatile in multithread threadpool

This commit is contained in:
Dhanya Maliakal 2017-03-23 11:55:56 +01:00
parent 911ff49238
commit 78078f4ef3

View File

@ -38,8 +38,8 @@ private:
std::deque<Task*> 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;