V8 Project
|
#include <isolate.h>
Public Member Functions | |
ThreadId () | |
INLINE (bool Equals(const ThreadId &other) const) | |
INLINE (bool IsValid() const) | |
int | ToInteger () const |
Static Public Member Functions | |
static ThreadId | Current () |
static ThreadId | Invalid () |
static ThreadId | FromInteger (int id) |
Private Member Functions | |
ThreadId (int id) | |
Static Private Member Functions | |
static int | AllocateThreadId () |
static int | GetCurrentThreadId () |
Private Attributes | |
int | id_ |
Static Private Attributes | |
static const int | kInvalidId = -1 |
static base::Atomic32 | highest_thread_id_ = 0 |
Friends | |
class | Isolate |
|
inline |
Definition at line 182 of file isolate.h.
Referenced by Current(), FromInteger(), and Invalid().
|
inlineexplicitprivate |
|
staticprivate |
Definition at line 45 of file isolate.cc.
References highest_thread_id_, and v8::base::NoBarrier_AtomicIncrement().
Referenced by GetCurrentThreadId().
|
inlinestatic |
Definition at line 185 of file isolate.h.
References GetCurrentThreadId(), and ThreadId().
Referenced by v8::internal::ThreadManager::ArchiveThread(), v8::internal::ThreadManager::CurrentId(), v8::internal::Isolate::Enter(), v8::internal::Isolate::Exit(), v8::internal::Isolate::FindOrAllocatePerThreadDataForThisThread(), v8::internal::Isolate::FindPerThreadDataForThisThread(), v8::internal::ThreadManager::IsLockedByCurrentThread(), v8::internal::ThreadManager::Lock(), v8::internal::ThreadManager::RestoreThread(), v8::internal::OptimizingCompilerThread::Run(), and v8::internal::RUNTIME_FUNCTION().
Definition at line 206 of file isolate.h.
References ThreadId().
|
staticprivate |
Definition at line 51 of file isolate.cc.
References AllocateThreadId(), v8::base::Thread::GetThreadLocalInt(), v8::base::Thread::SetThreadLocalInt(), and v8::internal::Isolate::thread_id_key_.
Referenced by Current().
|
inline |
Definition at line 196 of file isolate.h.
References id_, and kInvalidId.
|
inlinestatic |
Definition at line 188 of file isolate.h.
References kInvalidId, and ThreadId().
Referenced by v8::internal::ThreadManager::ArchiveThread(), v8::internal::ThreadManager::EagerlyArchiveThread(), v8::internal::ThreadManager::RestoreThread(), and v8::internal::ThreadManager::Unlock().
|
inline |
Definition at line 202 of file isolate.h.
References id_.
Referenced by v8::internal::OptimizingCompilerThread::Run(), and v8::internal::RUNTIME_FUNCTION().
|
staticprivate |
Definition at line 219 of file isolate.h.
Referenced by AllocateThreadId().
|
private |
Definition at line 217 of file isolate.h.
Referenced by INLINE(), and ToInteger().
|
staticprivate |