![]() |
v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <platform.h>

Data Structures | |
| class | Options |
| class | PlatformData |
Public Types | |
| enum | LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt } |
Public Member Functions | |
| Thread (const Options &options) | |
| virtual | ~Thread () |
| void | Start () |
| void | StartSynchronously () |
| void | Join () |
| const char * | name () const |
| virtual void | Run ()=0 |
| PlatformData * | data () |
| void | NotifyStartedAndRun () |
Static Public Member Functions | |
| static LocalStorageKey | CreateThreadLocalKey () |
| static void | DeleteThreadLocalKey (LocalStorageKey key) |
| static void * | GetThreadLocal (LocalStorageKey key) |
| static int | GetThreadLocalInt (LocalStorageKey key) |
| static void | SetThreadLocal (LocalStorageKey key, void *value) |
| static void | SetThreadLocalInt (LocalStorageKey key, int value) |
| static bool | HasThreadLocal (LocalStorageKey key) |
| static void * | GetExistingThreadLocal (LocalStorageKey key) |
| static void | YieldCPU () |
Static Public Attributes | |
| static const int | kMaxThreadNameLength = 16 |
Definition at line 517 of file platform.h.
| enum LocalStorageKey |
| Enumerator | |
|---|---|
| LOCAL_STORAGE_KEY_MIN_VALUE | |
| LOCAL_STORAGE_KEY_MAX_VALUE | |
Definition at line 523 of file platform.h.
Definition at line 587 of file platform-posix.cc.
References Thread::Options::name().
|
virtual |
Definition at line 598 of file platform-posix.cc.
|
static |
Definition at line 767 of file platform-posix.cc.
References ASSERT_EQ, v8::internal::NULL, and v8::internal::USE().
Referenced by Isolate::EnsureDefaultIsolate().
|
inline |
Definition at line 605 of file platform.h.
Referenced by RequestInterruptTestBase::InterruptThread::OnInterrupt().
|
static |
Definition at line 788 of file platform-posix.cc.
References ASSERT_EQ, and v8::internal::USE().
|
inlinestatic |
Definition at line 591 of file platform.h.
References Thread::GetThreadLocal().
Referenced by Isolate::INLINE().
|
static |
Definition at line 796 of file platform-posix.cc.
Referenced by Isolate::CurrentPerIsolateThreadData(), Isolate::EnsureDefaultIsolate(), PerThreadAssertScopeBase::GetAssertData(), Thread::GetExistingThreadLocal(), Thread::GetThreadLocalInt(), Thread::HasThreadLocal(), and Isolate::INLINE().
|
inlinestatic |
Definition at line 572 of file platform.h.
References Thread::GetThreadLocal().
|
inlinestatic |
Definition at line 579 of file platform.h.
References Thread::GetThreadLocal(), and v8::internal::NULL.
| void Join | ( | ) |
Definition at line 674 of file platform-posix.cc.
References v8::internal::NULL, and Thread::PlatformData::thread_.
Referenced by Profiler::Disengage(), SamplerThread::RemoveActiveSampler(), ThreadC::Run(), Shell::RunMain(), SweeperThread::Stop(), OptimizingCompilerThread::Stop(), ProfilerEventsProcessor::StopSynchronously(), ApiTestFuzzer::TearDown(), TEST(), and WorkerThread::~WorkerThread().
|
inline |
Definition at line 561 of file platform.h.
|
inline |
Definition at line 607 of file platform.h.
References Thread::Run().
|
pure virtual |
Implemented in RequestInterruptTestBase::InterruptThread, InitDefaultIsolateThread, IsolateThread, RegExpInterruptionThread, ShellThread, Profiler, SamplerThread, ThreadC, ApiTestFuzzer, TerminatorThread, ProfilerEventsProcessor, ThreadIdValidationThread, KeyboardThread, TestWorkerThread, ReceiverThread, ThreadB, TestThread, OptimizingCompilerThread, KangarooThread, WorkerThread, ThreadA, and SweeperThread.
Referenced by Thread::NotifyStartedAndRun().
|
static |
Definition at line 802 of file platform-posix.cc.
References ASSERT_EQ, and v8::internal::USE().
Referenced by Isolate::EnsureDefaultIsolate(), and Thread::SetThreadLocalInt().
|
inlinestatic |
Definition at line 576 of file platform.h.
References Thread::SetThreadLocal().
| void Start | ( | ) |
Definition at line 649 of file platform-posix.cc.
References ASSERT, ASSERT_EQ, Thread::PlatformData::thread_, Thread::PlatformData::thread_creation_mutex_, and v8::internal::USE().
Referenced by Profiler::Engage(), ThreadIdValidationThread::Run(), Shell::RunMain(), ApiTestFuzzer::SetUp(), Thread::StartSynchronously(), TEST(), and WorkerThread::WorkerThread().
|
inline |
Definition at line 550 of file platform.h.
References v8::internal::NULL, and Thread::Start().
Referenced by SamplerThread::AddActiveSampler().
|
static |
Definition at line 679 of file platform-posix.cc.
References ASSERT_EQ, and v8::internal::USE().
|
static |
Definition at line 602 of file platform.h.