Add volatile qualifier at some places it should be

This commit is contained in:
Jean Pierre Cimalando 2020-04-13 19:17:10 +02:00
parent eda78c4604
commit 6d7b70e7c0

View file

@ -258,8 +258,8 @@ private:
uint32_t preloadSize { config::preloadSize };
Oversampling oversamplingFactor { config::defaultOversamplingFactor };
// Signals
bool quitThread { false };
bool emptyQueue { false };
volatile bool quitThread { false };
volatile bool emptyQueue { false };
std::atomic<int> threadsLoading { 0 };
RTSemaphore workerBarrier;