mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 07:37:01 +00:00
[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:
parent
241712305d
commit
e6e7bf8573
3 changed files with 18 additions and 12 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue