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-thread-termination.cc File Reference
#include "v8.h"
#include "platform.h"
#include "cctest.h"
Include dependency graph for test-thread-termination.cc:

Go to the source code of this file.

Data Structures

class  TerminatorThread
 
class  LoopingThread
 

Functions

v8::Handle< v8::ValueSignal (const v8::Arguments &args)
 
v8::Handle< v8::ValueTerminateCurrentThread (const v8::Arguments &args)
 
v8::Handle< v8::ValueFail (const v8::Arguments &args)
 
v8::Handle< v8::ValueLoop (const v8::Arguments &args)
 
v8::Handle< v8::ValueDoLoop (const v8::Arguments &args)
 
v8::Handle< v8::ValueDoLoopNoCall (const v8::Arguments &args)
 
v8::Handle< v8::ObjectTemplateCreateGlobalTemplate (v8::InvocationCallback terminate, v8::InvocationCallback doloop)
 
 TEST (TerminateOnlyV8ThreadFromThreadItself)
 
 TEST (TerminateOnlyV8ThreadFromThreadItselfNoLoop)
 
 TEST (TerminateOnlyV8ThreadFromOtherThread)
 
 TEST (TerminateMultipleV8ThreadsDefaultIsolate)
 
v8::Handle< v8::ValueTerminateOrReturnObject (const v8::Arguments &args)
 
v8::Handle< v8::ValueLoopGetProperty (const v8::Arguments &args)
 
 TEST (TerminateLoadICException)
 
v8::Handle< v8::ValueReenterAfterTermination (const v8::Arguments &args)
 
 TEST (TerminateAndReenterFromThreadItself)
 

Variables

v8::internal::Semaphoresemaphore = NULL
 
int call_count = 0
 

Function Documentation

v8::Handle<v8::Value> Fail ( const v8::Arguments args)

Definition at line 49 of file test-thread-termination.cc.

References CHECK, and v8::Undefined().

Referenced by CreateGlobalTemplate(), and TEST().

v8::Handle<v8::Value> Signal ( const v8::Arguments args)

Definition at line 36 of file test-thread-termination.cc.

References Semaphore::Signal(), and v8::Undefined().

Referenced by LoopingThread::Run(), and TEST().

v8::Handle<v8::Value> TerminateCurrentThread ( const v8::Arguments args)

Variable Documentation

int call_count = 0

Definition at line 268 of file test-thread-termination.cc.

Referenced by TerminateOrReturnObject(), and TEST().

Definition at line 33 of file test-thread-termination.cc.

Referenced by TEST().