Searched defs:LazyInstance (Results 1 - 2 of 2) sorted by relevance

/external/chromium_org/base/
H A Dlazy_instance.h5 // The LazyInstance<Type, Traits> class manages a single instance of Type,
14 // LazyInstance is completely thread safe, assuming that you create it safely.
16 // static constructor. It really only makes sense to declare a LazyInstance as
19 // LazyInstance is similar to Singleton, except it does not have the singleton
20 // property. You can have multiple LazyInstance's of the same type, and each
27 // static LazyInstance<MyClass> my_instance = LAZY_INSTANCE_INITIALIZER;
48 // LazyInstance uses its own struct initializer-list style static
82 // Use LazyInstance<T>::Leaky for a less-verbose call-site typedef; e.g.:
83 // base::LazyInstance<T>::Leaky my_leaky_lazy_instance;
85 // base::LazyInstance<
124 class LazyInstance { class in namespace:base
[all...]
/external/chromium_org/v8/src/base/
H A Dlazy-instance.h5 // 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 { struct in namespace:v8::base
[all...]

Completed in 134 milliseconds