diff options
author | Machiavelli <none@none> | 2010-05-26 19:04:13 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2010-05-26 19:04:13 +0200 |
commit | 6da6879effad0e7b86c908fe01f14b8448da6db1 (patch) | |
tree | d5a999f0df9331a57167149ebe1dd3a0ac17e492 /src/shared/Database/Database.h | |
parent | 3cd4626dacddf9ba34473f2dac511ea0c07bd048 (diff) |
Add another ACE_Thread_Mutex in Database class for threadsafe operations on m_transQueues.
Fixes crash specified in comment #8 on issue #2214
--HG--
branch : trunk
Diffstat (limited to 'src/shared/Database/Database.h')
-rw-r--r-- | src/shared/Database/Database.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/Database/Database.h b/src/shared/Database/Database.h index 4a648ad2e80..4ad5d29c993 100644 --- a/src/shared/Database/Database.h +++ b/src/shared/Database/Database.h @@ -139,7 +139,8 @@ class Database private: bool m_logSQL; std::string m_logsDir; - ACE_Thread_Mutex mMutex; + ACE_Thread_Mutex mMutex; // For thread safe operations between core and mySQL server + ACE_Thread_Mutex nMutex; // For thread safe operations on m_transQueues ACE_Based::Thread * tranThread; |