V8 Project
|
#include <task-queue.h>
Public Member Functions | |
TaskQueue () | |
~TaskQueue () | |
void | Append (Task *task) |
Task * | GetNext () |
void | Terminate () |
Private Member Functions | |
DISALLOW_COPY_AND_ASSIGN (TaskQueue) | |
Private Attributes | |
base::Mutex | lock_ |
base::Semaphore | process_queue_semaphore_ |
std::queue< Task * > | task_queue_ |
bool | terminated_ |
Definition at line 20 of file task-queue.h.
v8::platform::TaskQueue::TaskQueue | ( | ) |
Definition at line 12 of file task-queue.cc.
v8::platform::TaskQueue::~TaskQueue | ( | ) |
Definition at line 15 of file task-queue.cc.
References DCHECK, lock_, task_queue_, and terminated_.
void v8::platform::TaskQueue::Append | ( | Task * | task | ) |
Definition at line 22 of file task-queue.cc.
References DCHECK, lock_, process_queue_semaphore_, task_queue_, and terminated_.
Referenced by v8::platform::DefaultPlatform::CallOnBackgroundThread(), and v8::platform::TEST().
|
private |
Task * v8::platform::TaskQueue::GetNext | ( | ) |
Definition at line 30 of file task-queue.cc.
References lock_, NULL, process_queue_semaphore_, task_queue_, and terminated_.
Referenced by v8::platform::WorkerThread::Run(), and v8::platform::TEST().
void v8::platform::TaskQueue::Terminate | ( | ) |
Definition at line 49 of file task-queue.cc.
References DCHECK, lock_, process_queue_semaphore_, and terminated_.
Referenced by v8::platform::TEST(), and v8::platform::DefaultPlatform::~DefaultPlatform().
|
private |
Definition at line 36 of file task-queue.h.
Referenced by Append(), GetNext(), Terminate(), and ~TaskQueue().
|
private |
Definition at line 37 of file task-queue.h.
Referenced by Append(), GetNext(), and Terminate().
|
private |
Definition at line 38 of file task-queue.h.
Referenced by Append(), GetNext(), and ~TaskQueue().
|
private |
Definition at line 39 of file task-queue.h.
Referenced by Append(), GetNext(), Terminate(), and ~TaskQueue().