Home | History | Annotate | Download | only in memory

Lines Matching refs:Traits

45 // Default traits for Singleton<Type>. Calls operator new and operator delete on
75 // Alternate traits for use with the Singleton<Type>. Identical to
87 // Alternate traits for use with the Singleton<Type>. Allocates memory
111 // this is traits for returning NULL.
143 // The Singleton<Type, Traits, DifferentiatingType> class manages a single
192 // On every platform, if Traits::RAE is true, the singleton will be destroyed at
198 // If Traits::RAE is false, the singleton will not be freed at process exit,
199 // thus the singleton will be leaked if it is ever accessed. Traits::RAE
214 typename Traits = DefaultSingletonTraits<Type>,
232 if (!Traits::kAllowedToAccessOnNonjoinableThread)
249 Type* newval = Traits::New();
255 if (newval != NULL && Traits::kRegisterAtExit)
273 Traits::Delete(reinterpret_cast<Type*>(subtle::NoBarrier_Load(&instance_)));
279 template <typename Type, typename Traits, typename DifferentiatingType>
280 subtle::AtomicWord Singleton<Type, Traits, DifferentiatingType>::instance_ = 0;