Home | History | Annotate | Download | only in src

Lines Matching refs:LazyInstance

28 // The LazyInstance<Type, Traits> class manages a single instance of Type,
35 // LazyInstance is completely thread safe, assuming that you create it safely.
37 // static constructor. It really only makes sense to declare a LazyInstance as
40 // LazyInstance is similar to Singleton, except it does not have the singleton
41 // property. You can have multiple LazyInstance's of the same type, and each
49 // static LazyInstance<MyClass>::type my_instance = LAZY_INSTANCE_INITIALIZER;
65 // static LazyInstance<MyClass, MyCreateTrait>::type my_instance =
68 // WARNING: This implementation of LazyInstance is NOT thread-safe by default.
72 // LazyInstance can actually be used in two different ways:
241 struct LazyInstance {
242 // A LazyInstance is a LazyStaticInstance.