#include <v8.h>
Public メソッド | |
Locker () | |
~Locker () | |
Static Public メソッド | |
static void | StartPreemption (int every_n_ms) |
static void | StopPreemption () |
static bool | IsLocked () |
Private メソッド | |
Locker (const Locker &) | |
void | operator= (const Locker &) |
Private 変数 | |
bool | has_lock_ |
bool | top_level_ |
v8::Locker::Locker | ( | ) |
v8::Locker::~Locker | ( | ) |
v8::Locker::Locker | ( | const Locker & | ) | [private] |
bool v8::Locker::IsLocked | ( | ) | [static] |
Returns whether or not the locker is locked by the current thread.
v8threads.cc の 57 行で定義されています。
参照先 v8::internal::ThreadManager::IsLockedByCurrentThread().
参照元 v8::internal::ContextSwitcher::PreemptionReceived(), v8::internal::ContextSwitcher::StartPreemption(), v8::internal::ContextSwitcher::Stop(), と v8::internal::ContextSwitcher::StopPreemption().
void v8::Locker::operator= | ( | const Locker & | ) | [private] |
void v8::Locker::StartPreemption | ( | int | every_n_ms | ) | [static] |
Start preemption.
When preemption is started, a timer is fired every n milli seconds that will switch between multiple threads that are in contention for the V8 lock.
v8threads.cc の 87 行で定義されています。
void v8::Locker::StopPreemption | ( | ) | [static] |
bool v8::Locker::has_lock_ [private] |
bool v8::Locker::top_level_ [private] |