c:/nebula3/code/foundation/core/osx/osxsingleton.h File Reference
Detailed Description
Provides helper macros to implement singleton objects:
- __DeclareSingleton put this into class declaration
- __ImplementSingleton put this into the implemention file
- __ConstructSingleton put this into the constructor
- __DestructSingleton put this into the destructor
Get a pointer to a singleton object using the static Instance() method:
Core::Server* coreServer = Core::Server::Instance();
(C) 2010 Radon Labs GmbH
#include "core/types.h"
#include "threading/osx/osxthreadlocalptr.h"