aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/DBTManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/direct_bt/DBTManager.hpp')
-rw-r--r--api/direct_bt/DBTManager.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/direct_bt/DBTManager.hpp b/api/direct_bt/DBTManager.hpp
index 76642c78..51c6d612 100644
--- a/api/direct_bt/DBTManager.hpp
+++ b/api/direct_bt/DBTManager.hpp
@@ -118,8 +118,8 @@ namespace direct_bt {
LFRingbuffer<std::shared_ptr<MgmtEvent>, nullptr> mgmtEventRing;
std::thread mgmtReaderThread;
- volatile bool mgmtReaderRunning;
- volatile bool mgmtReaderShallStop;
+ std::atomic<bool> mgmtReaderRunning;
+ std::atomic<bool> mgmtReaderShallStop;
/** One MgmtAdapterEventCallbackList per event type, allowing multiple callbacks to be invoked for each event */
std::array<MgmtAdapterEventCallbackList, static_cast<uint16_t>(MgmtEvent::Opcode::MGMT_EVENT_TYPE_COUNT)> mgmtAdapterEventCallbackLists;