V8 Project
|
#include <worker-thread.h>
Public Member Functions | |
WorkerThread (TaskQueue *queue) | |
virtual | ~WorkerThread () |
virtual void | Run () OVERRIDE |
![]() | |
Thread (const Options &options) | |
virtual | ~Thread () |
void | Start () |
void | StartSynchronously () |
void | Join () |
const char * | name () const |
PlatformData * | data () |
void | NotifyStartedAndRun () |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (WorkerThread) | |
Private Attributes | |
TaskQueue * | queue_ |
Friends | |
class | QuitTask |
Additional Inherited Members | |
![]() | |
typedef int32_t | LocalStorageKey |
![]() | |
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 const int | kMaxThreadNameLength = 16 |
Definition at line 19 of file worker-thread.h.
|
explicit |
Definition at line 13 of file worker-thread.cc.
References v8::base::Thread::Start().
|
virtual |
Definition at line 19 of file worker-thread.cc.
References v8::base::Thread::Join().
|
private |
|
virtual |
Implements v8::base::Thread.
Definition at line 24 of file worker-thread.cc.
References v8::platform::TaskQueue::GetNext(), and queue_.
|
friend |
Definition at line 28 of file worker-thread.h.
|
private |
Definition at line 30 of file worker-thread.h.
Referenced by Run().