Loading include/utils/Singleton.h +5 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,11 @@ public: return *instance; } static bool hasInstance() { Mutex::Autolock _l(sLock); return sInstance != 0; } protected: ~Singleton() { }; Singleton() { }; Loading Loading
include/utils/Singleton.h +5 −0 Original line number Diff line number Diff line Loading @@ -38,6 +38,11 @@ public: return *instance; } static bool hasInstance() { Mutex::Autolock _l(sLock); return sInstance != 0; } protected: ~Singleton() { }; Singleton() { }; Loading