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
ThreadManager Class Reference

#include <v8threads.h>

Public Member Functions

void Lock ()
 
void Unlock ()
 
void ArchiveThread ()
 
bool RestoreThread ()
 
void FreeThreadResources ()
 
bool IsArchived ()
 
void Iterate (ObjectVisitor *v)
 
void IterateArchivedThreads (ThreadVisitor *v)
 
bool IsLockedByCurrentThread ()
 
ThreadId CurrentId ()
 
void TerminateExecution (ThreadId thread_id)
 
ThreadStateFirstThreadStateInUse ()
 
ThreadStateGetFreeThreadState ()
 

Friends

class Isolate
 
class ThreadState
 

Detailed Description

Definition at line 90 of file v8threads.h.

Member Function Documentation

ThreadId CurrentId ( )

Definition at line 411 of file v8threads.cc.

References ThreadId::Current().

Referenced by ThreadManager::ArchiveThread().

ThreadState * GetFreeThreadState ( )

Definition at line 275 of file v8threads.cc.

References ThreadManager::ThreadState.

Referenced by ThreadManager::ArchiveThread().

void Lock ( )
void Unlock ( )

Definition at line 219 of file v8threads.cc.

References ThreadId::Invalid(), and Mutex::Unlock().

Referenced by Unlocker::Unlocker(), and Locker::~Locker().

Friends And Related Function Documentation

friend class Isolate
friend

Definition at line 137 of file v8threads.h.

friend class ThreadState
friend

Definition at line 138 of file v8threads.h.

Referenced by ThreadManager::GetFreeThreadState().


The documentation for this class was generated from the following files: