v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test-threads.cc File Reference
#include "v8.h"
#include "platform.h"
#include "isolate.h"
#include "cctest.h"
Include dependency graph for test-threads.cc:

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)
 

Enumeration Type Documentation

enum Turn
Enumerator
FILL_CACHE 
CLEAN_CACHE 
SECOND_TIME_FILL_CACHE 
DONE 

Definition at line 56 of file test-threads.cc.

Function Documentation

TEST ( JSFunctionResultCachesInTwoThreads  )

Definition at line 126 of file test-threads.cc.

References CHECK_EQ, DONE, V8::Initialize(), Thread::Join(), and Thread::Start().

TEST ( ThreadIdValidation  )
TEST ( ThreadJoinSelf  )

Definition at line 204 of file test-threads.cc.

References Thread::Join(), and Thread::Start().