MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / GetInstance

Method GetInstance

Source/OpenNI/XnNodeManager.cpp:77–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77XnNodeManager* XnNodeManager::GetInstance()
78{
79 // NOTE: we *never* free the NodeManager instance, as it should always exist. Global variables dtors
80 // might still use lists and hashs to do their work.
81 // Instead, we let the OS free its memory and resources.
82 static XnNodeManager* pNM = XN_NEW(XnNodeManager);
83 return pNM;
84}
85
86XnNode* XnNodeManager::Allocate()
87{

Callers 1

UpdateFrameSyncMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected