12 lines
209 B
C++
12 lines
209 B
C++
#include "Map.hpp"
|
|
|
|
|
|
void Map::safeInsert(int key, unsigned int value){
|
|
std::lock_guard<std::mutex> lock(qMutex);
|
|
uMap.insert({key, value});
|
|
}
|
|
|
|
unsigned int Map::find(int key){
|
|
return uMap[key];
|
|
}
|