- tbb::concurrent_unordered_map<std::string, int> sentMessages;
- //std::unordered_map<std::string, int> sentMessages;
- //std::unordered_map<std::string, int> recvMessages;
- tbb::concurrent_unordered_map<std::string, int> recvMessages;
+ //tbb::concurrent_unordered_map<std::string, int> sentMessages;
+ std::unordered_map<std::string, std::atomic<int>> sentMessages;
+ std::unordered_map<std::string, std::atomic<int>> recvMessages;
+// tbb::concurrent_unordered_map<std::string, int> recvMessages;