Lines Matching defs:instance
62 * Singleton class factory that holds a reference to the created instance
73 instance = 0;
77 if (instance == 0) {
78 instance = new SessionClassFactory();
79 if (instance) {
80 instance->AddRef(); // protect FinalConstruct()
81 rv = instance->FinalConstruct();
83 instance->Release();
85 instance->AddRef(); // self-reference
90 instance->AddRef();
92 *inst = instance;
96 if (instance)
97 instance->Release();
102 static Session *instance;
107 //Session *SessionClassFactory::instance = 0;