v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::Locker Class Reference

#include <v8-locker.h>

Collaboration diagram for v8::Locker:

Public Member Functions

V8_INLINE Locker (Isolate *isolate)
 
 ~Locker ()
 
 Locker (const Locker &)=delete
 
void operator= (const Locker &)=delete
 

Static Public Member Functions

static bool IsLocked (Isolate *isolate)
 

Private Member Functions

void Initialize (Isolate *isolate)
 

Private Attributes

bool has_lock_
 
bool top_level_
 
internal::Isolateisolate_
 

Detailed Description

Definition at line 109 of file v8-locker.h.

Constructor & Destructor Documentation

◆ Locker() [1/2]

V8_INLINE v8::Locker::Locker ( Isolate * isolate)
inlineexplicit

Initialize Locker for a given Isolate.

Definition at line 114 of file v8-locker.h.

◆ ~Locker()

v8::Locker::~Locker ( )

Definition at line 59 of file v8threads.cc.

Here is the call graph for this function:

◆ Locker() [2/2]

v8::Locker::Locker ( const Locker & )
delete

Member Function Documentation

◆ Initialize()

void v8::Locker::Initialize ( v8::Isolate * isolate)
private

Definition at line 29 of file v8threads.cc.

Here is the call graph for this function:

◆ IsLocked()

bool v8::Locker::IsLocked ( v8::Isolate * isolate)
static

Returns whether or not the locker for a given isolate, is locked by the current thread.

Definition at line 53 of file v8threads.cc.

Here is the call graph for this function:

◆ operator=()

void v8::Locker::operator= ( const Locker & )
delete

Member Data Documentation

◆ has_lock_

bool v8::Locker::has_lock_
private

Definition at line 131 of file v8-locker.h.

◆ isolate_

internal::Isolate* v8::Locker::isolate_
private

Definition at line 133 of file v8-locker.h.

◆ top_level_

bool v8::Locker::top_level_
private

Definition at line 132 of file v8-locker.h.


The documentation for this class was generated from the following files: