7 #ifndef PXR_BASE_TF_SINGLETON_H
8 #define PXR_BASE_TF_SINGLETON_H
126 T *p = _instance.load();
128 p = _CreateInstance(_instance);
144 return static_cast<bool>(_instance.load());
179 static T *_CreateInstance(std::atomic<T *> &instance);
181 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()