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

#include <worker-thread.h>

Inheritance diagram for WorkerThread:
Collaboration diagram for WorkerThread:

Public Member Functions

 WorkerThread (TaskQueue *queue)
 
virtual ~WorkerThread ()
 
virtual void Run () V8_OVERRIDE
 
- Public Member Functions inherited from Thread
 Thread (const Options &options)
 
virtual ~Thread ()
 
void Start ()
 
void StartSynchronously ()
 
void Join ()
 
const char * name () const
 
PlatformDatadata ()
 
void NotifyStartedAndRun ()
 

Friends

class QuitTask
 

Additional Inherited Members

- Public Types inherited from Thread
enum  LocalStorageKey { LOCAL_STORAGE_KEY_MIN_VALUE = kMinInt, LOCAL_STORAGE_KEY_MAX_VALUE = kMaxInt }
 
- Static Public Member Functions inherited from Thread
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 inherited from Thread
static const int kMaxThreadNameLength = 16
 

Detailed Description

Definition at line 43 of file worker-thread.h.

Constructor & Destructor Documentation

WorkerThread ( TaskQueue queue)
explicit

Definition at line 38 of file worker-thread.cc.

References Thread::Start().

~WorkerThread ( )
virtual

Definition at line 44 of file worker-thread.cc.

References Thread::Join().

Member Function Documentation

void Run ( )
virtual

Implements Thread.

Definition at line 49 of file worker-thread.cc.

References TaskQueue::GetNext().

Friends And Related Function Documentation

friend class QuitTask
friend

Definition at line 52 of file worker-thread.h.


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