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
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 394 of file v8threads.cc.

References ThreadId::Current().

Referenced by ThreadManager::ArchiveThread().

ThreadState * GetFreeThreadState ( )

Definition at line 259 of file v8threads.cc.

References ThreadManager::ThreadState.

Referenced by ThreadManager::ArchiveThread().

bool IsArchived ( )
void Lock ( )

Definition at line 196 of file v8threads.cc.

References ASSERT, ThreadId::Current(), and ThreadManager::IsLockedByCurrentThread().

Referenced by Unlocker::~Unlocker().

void Unlock ( )

Definition at line 203 of file v8threads.cc.

References ThreadId::Invalid().

Referenced by 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: