Lines Matching refs:instance
40 static T* volatile instance = NULL;
70 instance = T::CreateInstance();
72 T* old_instance = instance;
73 instance = NULL;
96 // The instance has been destroyed by some other thread. Rollback.
102 if (instance == NULL) {
113 // updated just yet (that's done when the instance is created).
126 // Create instance and let whichever thread finishes first assign its
127 // local copy to the global instance. All other threads reclaim their
131 InterlockedExchangePointer(reinterpret_cast<void* volatile*>(&instance),
141 reinterpret_cast<void* volatile*>(&instance), NULL));
148 return instance;