mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
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:
@@ -17,9 +17,6 @@
|
||||
*/
|
||||
|
||||
#include "MemoryLeaks.h"
|
||||
#include "Policies/SingletonImp.h"
|
||||
|
||||
INSTANTIATE_SINGLETON_1( MemoryManager ) ;
|
||||
|
||||
MemoryManager::MemoryManager( )
|
||||
{
|
||||
|
||||
@@ -39,10 +39,11 @@
|
||||
#endif
|
||||
|
||||
|
||||
#include "Policies/Singleton.h"
|
||||
#include "ace/Singleton.h"
|
||||
|
||||
struct MemoryManager : public Trinity::Singleton < MemoryManager >
|
||||
struct MemoryManager
|
||||
{
|
||||
MemoryManager();
|
||||
};
|
||||
#define sMemoryManager ACE_Singleton<MemoryManager, ACE_Null_Mutex>::instance()
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user