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
Thread Class Referenceabstract

#include <platform.h>

Inheritance diagram for Thread:

Data Structures

class  Options
 
class  PlatformData
 

Public Types

enum  LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt }
 

Public Member Functions

 Thread (const Options &options)
 
virtual ~Thread ()
 
void Start ()
 
void Join ()
 
const char * name () const
 
virtual void Run ()=0
 
PlatformDatadata ()
 

Static Public Member Functions

static LocalStorageKey CreateThreadLocalKey ()
 
static void DeleteThreadLocalKey (LocalStorageKey key)
 
static void * GetThreadLocal (LocalStorageKey key)
 
static int GetThreadLocalInt (LocalStorageKey key)
 
static void SetThreadLocal (LocalStorageKey key, void *value)
 
static void SetThreadLocalInt (LocalStorageKey key, int value)
 
static bool HasThreadLocal (LocalStorageKey key)
 
static void * GetExistingThreadLocal (LocalStorageKey key)
 
static void YieldCPU ()
 

Static Public Attributes

static const int kMaxThreadNameLength = 16
 

Detailed Description

Definition at line 449 of file platform.h.

Member Enumeration Documentation

Enumerator
LOCAL_STORAGE_KEY_MIN_VALUE 
LOCAL_STORAGE_KEY_MAX_VALUE 

Definition at line 455 of file platform.h.

Constructor & Destructor Documentation

Thread ( const Options options)
explicit

Definition at line 371 of file platform-cygwin.cc.

References Thread::Options::name().

~Thread ( )
virtual

Definition at line 378 of file platform-cygwin.cc.

Member Function Documentation

Thread::LocalStorageKey CreateThreadLocalKey ( )
static

Definition at line 438 of file platform-cygwin.cc.

References ASSERT, v8::internal::NULL, and v8::internal::USE().

Referenced by Isolate::EnsureDefaultIsolate().

PlatformData* data ( )
inline

Definition at line 528 of file platform.h.

void DeleteThreadLocalKey ( LocalStorageKey  key)
static

Definition at line 447 of file platform-cygwin.cc.

References ASSERT, and v8::internal::USE().

static void* GetExistingThreadLocal ( LocalStorageKey  key)
inlinestatic

Definition at line 514 of file platform.h.

References Thread::GetThreadLocal().

Referenced by Isolate::INLINE().

static int GetThreadLocalInt ( LocalStorageKey  key)
inlinestatic

Definition at line 495 of file platform.h.

References Thread::GetThreadLocal().

static bool HasThreadLocal ( LocalStorageKey  key)
inlinestatic

Definition at line 502 of file platform.h.

References Thread::GetThreadLocal(), and v8::internal::NULL.

const char* name ( ) const
inline

Definition at line 484 of file platform.h.

void SetThreadLocal ( LocalStorageKey  key,
void *  value 
)
static

Definition at line 461 of file platform-cygwin.cc.

Referenced by Isolate::EnsureDefaultIsolate(), and Thread::SetThreadLocalInt().

static void SetThreadLocalInt ( LocalStorageKey  key,
int  value 
)
inlinestatic

Definition at line 499 of file platform.h.

References Thread::SetThreadLocal().

void YieldCPU ( )
static

Definition at line 467 of file platform-cygwin.cc.

Referenced by ProfilerEventsProcessor::Run().

Field Documentation

const int kMaxThreadNameLength = 16
static

Definition at line 525 of file platform.h.


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