v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Locker Class Reference

#include <v8.h>

Public Member Functions

V8_INLINE Locker (Isolate *isolate)
 
 ~Locker ()
 

Static Public Member Functions

static bool IsLocked (Isolate *isolate)
 
static bool IsActive ()
 

Detailed Description

Definition at line 5429 of file v8.h.

Constructor & Destructor Documentation

V8_INLINE Locker ( Isolate isolate)
inlineexplicit

Initialize Locker for a given Isolate.

Definition at line 5434 of file v8.h.

Member Function Documentation

bool IsActive ( )
static

Returns whether v8::Locker is being used by this V8 instance.

Definition at line 93 of file v8threads.cc.

Referenced by HandleScope::Initialize().

bool IsLocked ( v8::Isolate isolate)
static

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

Definition at line 86 of file v8threads.cc.

References ASSERT, ThreadManager::IsLockedByCurrentThread(), NULL, and Isolate::thread_manager().

Referenced by LockAndUnlockDifferentIsolatesThread::Run(), LockUnlockLockThread::Run(), TEST(), and THREADED_TEST().


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