v8  3.25.30(node0.11.13)
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 (JSFunctionResultCachesInTwoThreads)
 
 TEST (ThreadIdValidation)
 
 TEST (ThreadJoinSelf)
 

Enumeration Type Documentation

enum Turn
Enumerator
FILL_CACHE 
CLEAN_CACHE 
SECOND_TIME_FILL_CACHE 
DONE 

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

Function Documentation

TEST ( JSFunctionResultCachesInTwoThreads  )

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

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

TEST ( ThreadIdValidation  )

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

References List< T, P >::Add(), ThreadId::Invalid(), NULL, semaphore, and Thread::Start().

TEST ( ThreadJoinSelf  )

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

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