v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
lazy-instance.h File Reference
#include <type_traits>
#include "src/base/macros.h"
#include "src/base/once.h"
Include dependency graph for lazy-instance.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  v8::base::LeakyInstanceTrait< T >
 
struct  v8::base::StaticallyAllocatedInstanceTrait< T >
 
struct  v8::base::DynamicallyAllocatedInstanceTrait< T >
 
struct  v8::base::DefaultConstructTrait< T >
 
struct  v8::base::DefaultCreateTrait< T >
 
struct  v8::base::ThreadSafeInitOnceTrait
 
struct  v8::base::SingleThreadInitOnceTrait
 
struct  v8::base::LazyInstanceImpl< T, AllocationTrait, CreateTrait, InitOnceTrait, DestroyTrait >
 
struct  v8::base::LazyStaticInstance< T, CreateTrait, InitOnceTrait, DestroyTrait >
 
struct  v8::base::LazyInstance< T, CreateTrait, InitOnceTrait, DestroyTrait >
 
struct  v8::base::LazyDynamicInstance< T, CreateTrait, InitOnceTrait, DestroyTrait >
 
class  v8::base::LeakyObject< T >
 

Namespaces

namespace  v8
 
namespace  v8::base
 

Macros

#define LAZY_STATIC_INSTANCE_INITIALIZER   { V8_ONCE_INIT, { {} } }
 
#define LAZY_DYNAMIC_INSTANCE_INITIALIZER   { V8_ONCE_INIT, 0 }
 
#define LAZY_INSTANCE_INITIALIZER   LAZY_STATIC_INSTANCE_INITIALIZER
 
#define DEFINE_LAZY_LEAKY_OBJECT_GETTER(T, FunctionName, ...)
 

Macro Definition Documentation

◆ DEFINE_LAZY_LEAKY_OBJECT_GETTER

#define DEFINE_LAZY_LEAKY_OBJECT_GETTER ( T,
FunctionName,
... )
Value:
T* FunctionName() { \
static ::v8::base::LeakyObject<T> object{__VA_ARGS__}; \
return object.get(); \
}

Definition at line 248 of file lazy-instance.h.

◆ LAZY_DYNAMIC_INSTANCE_INITIALIZER

#define LAZY_DYNAMIC_INSTANCE_INITIALIZER   { V8_ONCE_INIT, 0 }

Definition at line 80 of file lazy-instance.h.

◆ LAZY_INSTANCE_INITIALIZER

#define LAZY_INSTANCE_INITIALIZER   LAZY_STATIC_INSTANCE_INITIALIZER

Definition at line 83 of file lazy-instance.h.

◆ LAZY_STATIC_INSTANCE_INITIALIZER

#define LAZY_STATIC_INSTANCE_INITIALIZER   { V8_ONCE_INIT, { {} } }

Definition at line 79 of file lazy-instance.h.