OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:LazyInstance
(Results
1 - 3
of
3
) sorted by null
/sdk/emulator/opengl/shared/emugl/common/
lazy_instance.h
28
// A
LazyInstance
is a helper template that can be used to perform
38
// static
LazyInstance
<Foo> gFoo = LAZY_INSTANCE_INIT;
63
//
LazyInstance
<FooWithDefaultParams> gFoo = LAZY_INSTANCE_INIT;
65
// The implementation of
LazyInstance
relies on atomic operations and
70
// You can also use
LazyInstance
<> instances as static local variables,
74
// static
LazyInstance
<Foo> sFoo = LAZY_INSTANCE_INIT;
113
//
LazyInstance
template definition, see comment above for usage
120
struct
LazyInstance
{
146
T*
LazyInstance
<T>::ptr() const {
/external/chromium_org/base/
lazy_instance.h
5
// 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;
49
//
LazyInstance
uses its own struct initializer-list style static
83
// Use
LazyInstance
<T>::Leaky for a less-verbose call-site typedef; e.g.:
84
// base::
LazyInstance
<T>::Leaky my_leaky_lazy_instance;
86
// base::
LazyInstance
<T, base::internal::LeakyLazyInstanceTraits<T>
[
all
...]
/external/chromium_org/v8/src/base/
lazy-instance.h
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
{
[
all
...]
Completed in 623 milliseconds