Home | History | Annotate | Download | only in base

Lines Matching refs:LazyInstance

6 // Please don't introduce new instances of LazyInstance<T>. Use a function-local
15 // The LazyInstance<Type, Traits> class manages a single instance of Type,
24 // LazyInstance is completely thread safe, assuming that you create it safely.
26 // static constructor. It really only makes sense to declare a LazyInstance as
29 // LazyInstance is similar to Singleton, except it does not have the singleton
30 // property. You can have multiple LazyInstance's of the same type, and each
37 // static LazyInstance<MyClass>::Leaky inst = LAZY_INSTANCE_INITIALIZER;
56 // LazyInstance uses its own struct initializer-list style static
100 // Use LazyInstance<T>::Leaky for a less-verbose call-site typedef; e.g.:
101 // base::LazyInstance<T>::Leaky my_leaky_lazy_instance;
103 // base::LazyInstance<T, base::internal::LeakyLazyInstanceTraits<T> >
132 class LazyInstance {
134 // Do not define a destructor, as doing so makes LazyInstance a
139 // ~LazyInstance() {}
143 typedef LazyInstance<Type, internal::LeakyLazyInstanceTraits<Type>> Leaky;
144 typedef LazyInstance<Type, internal::DestructorAtExitLazyInstanceTraits<Type>>
173 // LazyInstance struct to make the size a multiple of the alignment. This
201 LazyInstance<Type, Traits>* me =
202 reinterpret_cast<LazyInstance<Type, Traits>*>(lazy_instance);