Get rid of Trinity Singleton and Threading patterns and replace them with ACE_Singletons and ACE_GUARD_x macro´s with ACE_Thread_Mutex´es respectively.

Also get rid of unused CountedReference class that used Trinity threading pattern.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-06-25 00:18:01 +02:00
parent a6b9e716a6
commit 0f7657b68c
109 changed files with 349 additions and 1221 deletions
-3
View File
@@ -33,7 +33,6 @@
#include "WorldSocketMgr.h"
#include "Configuration/ConfigEnv.h"
#include "Database/DatabaseEnv.h"
#include "SingletonImp.h"
#include "CliRunnable.h"
#include "Log.h"
@@ -58,8 +57,6 @@ extern int m_ServiceStatus;
/// \todo Warning disabling not useful under VC++2005. Can somebody say on which compiler it is useful?
#pragma warning(disable:4305)
INSTANTIATE_SINGLETON_1( Master );
volatile uint32 Master::m_masterLoopCounter = 0;
/// Handle cored's termination signals
+1 -2
View File
@@ -26,7 +26,6 @@
#define _MASTER_H
#include "Common.h"
#include "Policies/Singleton.h"
/// Start the server
class Master
@@ -43,6 +42,6 @@ class Master
void clearOnlineAccounts();
};
#define sMaster Trinity::Singleton<Master>::Instance()
#define sMaster (*ACE_Singleton<Master, ACE_Null_Mutex>::instance())
#endif
/// @}
@@ -90,7 +90,7 @@ void WorldRunnable::run()
sWorldSocketMgr->StopNetwork();
MapManager::Instance().UnloadAll(); // unload all grids (including locked in memory)
sMapMgr.UnloadAll(); // unload all grids (including locked in memory)
///- End the database thread
WorldDatabase.ThreadEnd(); // free mySQL thread resources