From 6da6879effad0e7b86c908fe01f14b8448da6db1 Mon Sep 17 00:00:00 2001 From: Machiavelli Date: Wed, 26 May 2010 19:04:13 +0200 Subject: 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 --- src/shared/Database/Database.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/shared/Database/Database.h') 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; -- cgit v1.2.3