summaryrefslogtreecommitdiff
path: root/src/audiocacheeventhandler.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-07-14 18:51:08 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-07-14 18:51:08 +0200
commit2247c698d8f7dc5725f4d491e798c5147273ca1e (patch)
treeafcf538eed28bcc414e57c6c7c840736a237bc24 /src/audiocacheeventhandler.h
parentbe054acce347a227dc89308172543b64766ce0d2 (diff)
Move free-wheel control into the main run method.
Diffstat (limited to 'src/audiocacheeventhandler.h')
-rw-r--r--src/audiocacheeventhandler.h3
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};