29 #ifdef PXR_BASE_TF_INSTANTIATE_SINGLETON_H
30 #error This file should only be included once in any given source (.cpp) file.
33 #define PXR_BASE_TF_INSTANTIATE_SINGLETON_H
41 #include "pxr/base/tf/mallocTag.h"
59 static std::once_flag once;
60 std::call_once(once, [](){
64 TfAutoMallocTag2 tag2(
"Tf",
"TfSingleton::_CreateInstance");
65 TfAutoMallocTag tag(
"Create Singleton " + ArchGetDemangled<T>());
100 #define TF_INSTANTIATE_SINGLETON(T) \
101 template class PXR_NS_GLOBAL::TfSingleton<T>
PXR_NAMESPACE_CLOSE_SCOPE PXR_NAMESPACE_OPEN_SCOPE
#define PXR_NAMESPACE_CLOSE_SCOPE
#define ARCH_PRAGMA_MAY_NOT_BE_ALIGNED