mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
31 lines
707 B
C++
31 lines
707 B
C++
/*
|
|
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>
|
|
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
|
*/
|
|
|
|
#ifndef _WORKERTHREAD_H
|
|
#define _WORKERTHREAD_H
|
|
|
|
#include <ace/Task.h>
|
|
#include <ace/Activation_Queue.h>
|
|
|
|
class MySQLConnection;
|
|
|
|
class DatabaseWorker : protected ACE_Task_Base
|
|
{
|
|
public:
|
|
DatabaseWorker(ACE_Activation_Queue* new_queue, MySQLConnection* con);
|
|
|
|
///- Inherited from ACE_Task_Base
|
|
int svc() override;
|
|
int wait() override { return ACE_Task_Base::wait(); }
|
|
|
|
private:
|
|
DatabaseWorker() : ACE_Task_Base() { }
|
|
ACE_Activation_Queue* m_queue;
|
|
MySQLConnection* m_conn;
|
|
};
|
|
|
|
#endif
|