24 #ifndef PXR_BASE_TF_SINGLETON_H
25 #define PXR_BASE_TF_SINGLETON_H
143 T *p = _instance.load();
145 p = _CreateInstance(_instance);
161 return static_cast<bool>(_instance.load());
196 static T *_CreateInstance(std::atomic<T *> &instance);
198 static std::atomic<T *> _instance;
#define ARCH_PRAGMA_UNDEFINED_VAR_TEMPLATE
static void SetInstanceConstructed(T &instance)
static bool CurrentlyExists()
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
static void DeleteInstance()