Files
cs3100hw6/Map.cpp
2018-04-11 22:53:01 +00:00

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];
}