add locks in presence detection for _device dictionary
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include "BleScanner.h"
|
||||
#include "BleInterfaces.h"
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
struct PdDevice
|
||||
{
|
||||
@@ -29,6 +30,8 @@ public:
|
||||
private:
|
||||
void buildCsv(const std::shared_ptr<PdDevice>& device);
|
||||
|
||||
std::mutex mtx;
|
||||
|
||||
Preferences* _preferences;
|
||||
BleScanner::Scanner* _bleScanner;
|
||||
char* _csv = {0};
|
||||
|
||||
Reference in New Issue
Block a user