fixed race condition

This commit is contained in:
orignal 2014-09-10 18:57:24 -04:00
parent 9e759a59a9
commit 5abd4021c4
2 changed files with 4 additions and 0 deletions

View file

@ -129,6 +129,7 @@ namespace garlic
std::map<uint32_t, GarlicRoutingSession *> m_CreatedSessions; // msgID -> session
// incoming session
// multiple tags refer to one decyption
std::mutex m_SessionsTagsMutex;
std::map<SessionTag, SessionDecryption *> m_SessionTags; // tag -> decryption
};