mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-25 15:50:03 +02:00
esrf suggestion for volatile in multithread threadpool
This commit is contained in:
parent
911ff49238
commit
78078f4ef3
@ -38,8 +38,8 @@ private:
|
|||||||
std::deque<Task*> m_tasks;
|
std::deque<Task*> m_tasks;
|
||||||
volatile int m_pool_state;
|
volatile int m_pool_state;
|
||||||
|
|
||||||
bool m_tasks_loaded;
|
volatile bool m_tasks_loaded;
|
||||||
bool thread_started;
|
volatile bool thread_started;
|
||||||
int current_thread_number;
|
int current_thread_number;
|
||||||
|
|
||||||
//volatile uint64_t tasks_done_mask;
|
//volatile uint64_t tasks_done_mask;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user