![]() |
v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|

Go to the source code of this file.
Data Structures | |
| class | ThreadA |
| class | ThreadB |
| class | ThreadIdValidationThread |
| class | ThreadC |
Enumerations | |
| enum | Turn { FILL_CACHE, CLEAN_CACHE, SECOND_TIME_FILL_CACHE, DONE } |
Functions | |
| TEST (Preemption) | |
| TEST (JSFunctionResultCachesInTwoThreads) | |
| TEST (ThreadIdValidation) | |
| TEST (ThreadJoinSelf) | |
| enum Turn |
| Enumerator | |
|---|---|
| FILL_CACHE | |
| CLEAN_CACHE | |
| SECOND_TIME_FILL_CACHE | |
| DONE | |
Definition at line 56 of file test-threads.cc.
| TEST | ( | Preemption | ) |
Definition at line 36 of file test-threads.cc.
References Script::Compile(), V8::Initialize(), String::New(), Context::New(), Script::Run(), OS::Sleep(), Locker::StartPreemption(), and Locker::StopPreemption().
| TEST | ( | JSFunctionResultCachesInTwoThreads | ) |
Definition at line 126 of file test-threads.cc.
References CHECK_EQ, DONE, V8::Initialize(), Thread::Join(), and Thread::Start().
| TEST | ( | ThreadIdValidation | ) |
Definition at line 172 of file test-threads.cc.
References List< T, P >::Add(), OS::CreateSemaphore(), ThreadId::Invalid(), NULL, semaphore, Thread::Start(), and Semaphore::Wait().
| TEST | ( | ThreadJoinSelf | ) |
Definition at line 204 of file test-threads.cc.
References Thread::Join(), and Thread::Start().