diff options
Diffstat (limited to 'src/audiocacheeventhandler.h')
-rw-r--r-- | src/audiocacheeventhandler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audiocacheeventhandler.h b/src/audiocacheeventhandler.h index 4c0e9d9..7d4ed58 100644 --- a/src/audiocacheeventhandler.h +++ b/src/audiocacheeventhandler.h @@ -28,6 +28,7 @@ #include <list> #include <mutex> +#include <atomic> #include "thread.h" #include "semaphore.h" @@ -102,7 +103,7 @@ protected: std::list<CacheEvent> eventqueue; - bool threaded{false}; + std::atomic<bool> threaded{false}; Semaphore sem; Semaphore sem_run; bool running{false}; |