migrate fully to freeRTOS
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
|
||||
#include "SAD_ClientInterface.h"
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
#include "Mutex.hpp"
|
||||
#include <unordered_map>
|
||||
#include <list>
|
||||
|
||||
@@ -175,7 +175,7 @@ private:
|
||||
|
||||
}
|
||||
private:
|
||||
static recursive_mutex s_MutexDetectedServer;
|
||||
static fos::Mutex s_MutexDetectedServer;
|
||||
static unordered_map<string, SAD_DetectedServer*> s_DetectedServers;
|
||||
public:
|
||||
static const int PARAMINDEX_PRECODE = 0;
|
||||
@@ -222,7 +222,7 @@ public:
|
||||
static const SAD_DetectedServer& getRefDetectedServer(string p_ServerID) {
|
||||
SAD_DetectedServer* ptrDetectedServer = NULL;
|
||||
{
|
||||
unique_lock<recursive_mutex> o_Lock(s_MutexDetectedServer);
|
||||
fos::MutexGuard o_Lock(s_MutexDetectedServer);
|
||||
auto i = s_DetectedServers.find(p_ServerID);
|
||||
if (i != s_DetectedServers.end()) {
|
||||
ptrDetectedServer = i->second;
|
||||
|
||||
Reference in New Issue
Block a user