Public Member Functions | Static Public Member Functions

v8::Locker Class Reference

List of all members.

Public Member Functions

 Locker (Isolate *isolate=NULL)

Static Public Member Functions

static void StartPreemption (int every_n_ms)
static void StopPreemption ()
static bool IsLocked (Isolate *isolate=NULL)
static bool IsActive ()

Constructor & Destructor Documentation

v8::Locker::Locker ( Isolate isolate = NULL  )  [explicit]

Initialize Locker for a given Isolate. NULL means default isolate.


Member Function Documentation

static bool v8::Locker::IsActive (  )  [inline, static]

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

static bool v8::Locker::IsLocked ( Isolate isolate = NULL  )  [static]

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

static void v8::Locker::StartPreemption ( int  every_n_ms  )  [static]

Start preemption.

When preemption is started, a timer is fired every n milliseconds that will switch between multiple threads that are in contention for the V8 lock.

static void v8::Locker::StopPreemption (  )  [static]

Stop preemption.


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