24 #ifndef PXR_BASE_TF_SINGLETON_H
25 #define PXR_BASE_TF_SINGLETON_H
142 return ARCH_LIKELY(_instance) ? *_instance : _CreateInstance();
151 return _instance ?
true :
false;
175 "GetInstance() has completed");
176 _instance = &instance;
192 static T& _CreateInstance();
193 static void _DestroyInstance();
197 static std::mutex* _mutex;
static void SetInstanceConstructed(T &instance)
#define ARCH_PRAGMA_UNDEFINED_VAR_TEMPLATE
static void DeleteInstance()
static bool CurrentlyExists()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define ARCH_PRAGMA_NEEDS_EXPORT_INTERFACE
#define PXR_NAMESPACE_CLOSE_SCOPE