[10865] Make DB code thread-safe. Original patch by Machiavelli and Kero99.

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Ambal 2010-12-12 11:34:26 +02:00
parent 9b3535f803
commit af66b470a8
8 changed files with 53 additions and 26 deletions

View file

@ -36,9 +36,9 @@ class SqlDelayThread : public ACE_Based::Runnable
Database* m_dbEngine; ///< Pointer to used Database engine
volatile bool m_running;
SqlDelayThread();
public:
SqlDelayThread(Database* db);
~SqlDelayThread();
///< Put sql statement to delay queue
bool Delay(SqlOperation* sql) { m_sqlQueue.add(sql); return true; }