diff options
| author | leak <leak@bitmx.net> | 2014-07-04 15:22:06 +0200 |
|---|---|---|
| committer | leak <leak@bitmx.net> | 2014-07-04 15:22:06 +0200 |
| commit | 021e18d152b68b9d2a0c5887bab7eb7b61ecd2ca (patch) | |
| tree | d70e9680e7b4e6ced6a39939b47709c00d650548 /src/server/worldserver/Master.h | |
| parent | 4f2f9e08f80f46149dbbe8e5ca469267f39ae438 (diff) | |
Refactored both world and auth main
- Master/Worldrunable removed
- World Update loop now running on main (which was doing nothing before)
- Processpriority moved to shared
- Added a preliminary thread pool for boost::asio::io_service
Diffstat (limited to 'src/server/worldserver/Master.h')
| -rw-r--r-- | src/server/worldserver/Master.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/src/server/worldserver/Master.h b/src/server/worldserver/Master.h deleted file mode 100644 index 86059e6417a..00000000000 --- a/src/server/worldserver/Master.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright (C) 2008-2014 TrinityCore <http://www.trinitycore.org/> - * Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -/// \addtogroup Trinityd -/// @{ -/// \file - -#ifndef _MASTER_H -#define _MASTER_H - -#include <boost/asio/io_service.hpp> -#include "Common.h" -#include "RASession.h" - -template<typename T> -class AsyncAcceptor; - -/// Start the server -class Master -{ - public: - static Master* instance() - { - static Master* instance = new Master(); - return instance; - } - - int Run(); - - private: - bool _StartDB(); - void _StopDB(); - - void ClearOnlineAccounts(); - AsyncAcceptor<RASession>* StartRaSocketAcceptor(boost::asio::io_service& ioService); -}; - -#define sMaster Master::instance() - -#endif - -/// @} |
