[11053] Process all SQL requests upon SqlDelayThread object destroying which might have been added while thread was stopping.

Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
Ambal 2011-01-20 23:06:31 +02:00
parent 241712305d
commit e6e7bf8573
3 changed files with 18 additions and 12 deletions

View file

@ -38,6 +38,9 @@ class SqlDelayThread : public ACE_Based::Runnable
SqlConnection * m_dbConnection; ///< Pointer to DB connection
volatile bool m_running;
//process all enqueued requests
void ProcessRequests();
public:
SqlDelayThread(Database* db, SqlConnection* conn);
~SqlDelayThread();
@ -48,4 +51,4 @@ class SqlDelayThread : public ACE_Based::Runnable
virtual void Stop(); ///< Stop event
virtual void run(); ///< Main Thread loop
};
#endif //__SQLDELAYTHREAD_H
#endif //__SQLDELAYTHREAD_H