summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-10-20 00:09:34 +0200
committerSven Gothel <[email protected]>2020-10-20 00:09:34 +0200
commit96030ff694c45e121fad4051d63edd64db96f392 (patch)
tree690c3748e7dd5aa44c3630259758f20e08b9751c /api
parent7d2a28ce0b8ff145228251710df3bad14e755b03 (diff)
HCIHandler: mtx_connectionList drop recursive for simple mutex; Drop top-level command mtx (just use mtx_sendReply)
Also use mtx_sendReply for close() and start-, stop- and resetAdapter(). Same strategy as for DBTManager. Have to analyze GATTHandler, which is special due to having top-level commands producing multiple send-reply communications.
Diffstat (limited to 'api')
-rw-r--r--api/direct_bt/HCIHandler.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/api/direct_bt/HCIHandler.hpp b/api/direct_bt/HCIHandler.hpp
index 376233d5..142d64b3 100644
--- a/api/direct_bt/HCIHandler.hpp
+++ b/api/direct_bt/HCIHandler.hpp
@@ -195,7 +195,6 @@ namespace direct_bt {
const uint16_t dev_id;
POctets rbuffer;
HCIComm comm;
- std::recursive_mutex mtx;
hci_ufilter filter_mask;
std::atomic<uint32_t> metaev_filter_mask;
std::atomic<uint64_t> opcbit_filter_mask;
@@ -229,7 +228,7 @@ namespace direct_bt {
std::vector<HCIConnectionRef> connectionList;
std::vector<HCIConnectionRef> disconnectList;
- std::recursive_mutex mtx_connectionList;
+ std::mutex mtx_connectionList;
/**
* Returns a newly added HCIConnectionRef tracker connection with given parameters, if not existing yet.
* <p>