aboutsummaryrefslogtreecommitdiffstats
path: root/api/direct_bt/BTDevice.hpp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-11-17 03:49:44 +0100
committerSven Gothel <[email protected]>2021-11-17 03:49:44 +0100
commitb6b206a191029755bd155eaa0a1797c2f44a0cfc (patch)
tree4d57a503ed0026a2a829ea159e3667fdddcf74e6 /api/direct_bt/BTDevice.hpp
parent67b914d7dbe89434cd95d0f64b98c59d34946578 (diff)
BTAdapter::startDiscovery(..): Add 'bool filter_dup=true' as last parameter; Java: Same, but no default value possible (minor API change)
Diffstat (limited to 'api/direct_bt/BTDevice.hpp')
-rw-r--r--api/direct_bt/BTDevice.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/direct_bt/BTDevice.hpp b/api/direct_bt/BTDevice.hpp
index 4239c92f..5dd4810d 100644
--- a/api/direct_bt/BTDevice.hpp
+++ b/api/direct_bt/BTDevice.hpp
@@ -100,8 +100,8 @@ namespace direct_bt {
mutable std::recursive_mutex mtx_gattHandler;
mutable std::recursive_mutex mtx_connect;
mutable std::mutex mtx_data;
- std::atomic<bool> isConnected;
- std::atomic<bool> allowDisconnect; // allowDisconnect = isConnected || 'isConnectIssued'
+ jau::relaxed_atomic_bool isConnected;
+ jau::relaxed_atomic_bool allowDisconnect; // allowDisconnect = isConnected || 'isConnectIssued'
jau::relaxed_atomic_int32 supervision_timeout; // [ms]
struct PairingData {