aboutsummaryrefslogtreecommitdiff
path: root/src/trinitycore/Master.h
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-17 15:51:44 -0700
committermaximius <none@none>2009-10-17 15:51:44 -0700
commite585187b248f48b3c6e9247b49fa07c6565d65e5 (patch)
tree637c5b7ddacf41040bef4ea4f75a97da64c6a9bc /src/trinitycore/Master.h
parent26b5e033ffde3d161382fc9addbfa99738379641 (diff)
*Backed out changeset 3be01fb200a5
--HG-- branch : trunk
Diffstat (limited to 'src/trinitycore/Master.h')
-rw-r--r--src/trinitycore/Master.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/trinitycore/Master.h b/src/trinitycore/Master.h
index 49b29bd8639..967f497051a 100644
--- a/src/trinitycore/Master.h
+++ b/src/trinitycore/Master.h
@@ -17,13 +17,17 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+
/// \addtogroup Trinityd
/// @{
/// \file
+
#ifndef _MASTER_H
#define _MASTER_H
+
#include "Common.h"
#include "Policies/Singleton.h"
+
/// Start the server
class Master
{
@@ -32,13 +36,17 @@ class Master
~Master();
int Run();
static volatile uint32 m_masterLoopCounter;
+
private:
bool _StartDB();
+
void _HookSignals();
void _UnhookSignals();
static void _OnSignal(int s);
+
void clearOnlineAccounts();
};
+
#define sMaster Trinity::Singleton<Master>::Instance()
#endif
/// @}