v8  10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
Locker Class Reference

#include <v8-locker.h>

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)
 
static bool WasEverUsed ()
 
static bool IsActive ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ Locker() [1/2]

V8_INLINE Locker ( Isolate isolate)
inlineexplicit

Initialize Locker for a given Isolate.

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

◆ ~Locker()

~Locker ( )

◆ Locker() [2/2]

Locker ( const Locker )
delete

Member Function Documentation

◆ IsActive()

static bool IsActive ( )
static

◆ IsLocked()

static bool IsLocked ( Isolate isolate)
static

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

◆ operator=()

void operator= ( const Locker )
delete

◆ WasEverUsed()

static bool WasEverUsed ( )
static

Returns whether any v8::Locker has ever been used in this process. TODO(cbruni, chromium:1240851): Fix locking checks on a per-thread basis. The current implementation is quite confusing and leads to unexpected results if anybody uses v8::Locker in the current process.


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