7 #ifndef PXR_BASE_TF_SINGLETON_H
8 #define PXR_BASE_TF_SINGLETON_H
128 T *p = _instance.load();
130 p = _CreateOrWaitForInstance(_instance);
146 return static_cast<bool>(_instance.load());
186 static T *_CreateOrWaitForInstance(std::atomic<T *> &instance);
188 static std::atomic<T *> _instance;
189 static std::atomic<Tf_SingletonInitState *> _initState;
#define PXR_NAMESPACE_OPEN_SCOPE
#define ARCH_PRAGMA_UNDEFINED_VAR_TEMPLATE
static void SetInstanceConstructed(T &instance)
static bool CurrentlyExists()
#define PXR_NAMESPACE_CLOSE_SCOPE
static void DeleteInstance()