Home | History | Annotate | Download | only in base

Lines Matching defs:LazyInstance

5 // The LazyInstance<Type, Traits> class manages a single instance of Type,
12 // LazyInstance is completely thread safe, assuming that you create it safely.
14 // static constructor. It really only makes sense to declare a LazyInstance as
17 // LazyInstance is similar to Singleton, except it does not have the singleton
18 // property. You can have multiple LazyInstance's of the same type, and each
26 // static LazyInstance<MyClass>::type my_instance = LAZY_INSTANCE_INITIALIZER;
42 // static LazyInstance<MyClass, MyCreateTrait>::type my_instance =
46 // - This implementation of LazyInstance IS THREAD-SAFE by default. See
53 // LazyInstance can actually be used in two different ways:
219 struct LazyInstance {
220 // A LazyInstance is a LazyStaticInstance.