Skip to content

Commit

Permalink
src: elevate v8::Task namespace
Browse files Browse the repository at this point in the history
PR-URL: #26909
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Signed-off-by: Beth Griggs <[email protected]>
  • Loading branch information
juanarbol authored and BethGriggs committed Apr 10, 2019
1 parent e40bfd8 commit a318cbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/node_platform.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ class WorkerThreadsTaskRunner::DelayedTaskScheduler {
}

uv_sem_t ready_;
TaskQueue<v8::Task>* pending_worker_tasks_;
TaskQueue<Task>* pending_worker_tasks_;

TaskQueue<v8::Task> tasks_;
TaskQueue<Task> tasks_;
uv_loop_t loop_;
uv_async_t flush_tasks_;
std::unordered_set<uv_timer_t*> timers_;
Expand Down Expand Up @@ -201,7 +201,7 @@ void WorkerThreadsTaskRunner::PostTask(std::unique_ptr<Task> task) {
pending_worker_tasks_.Push(std::move(task));
}

void WorkerThreadsTaskRunner::PostDelayedTask(std::unique_ptr<v8::Task> task,
void WorkerThreadsTaskRunner::PostDelayedTask(std::unique_ptr<Task> task,
double delay_in_seconds) {
delayed_task_scheduler_->PostDelayedTask(std::move(task), delay_in_seconds);
}
Expand Down Expand Up @@ -408,11 +408,11 @@ bool PerIsolatePlatformData::FlushForegroundTasksInternal() {
return did_work;
}

void NodePlatform::CallOnWorkerThread(std::unique_ptr<v8::Task> task) {
void NodePlatform::CallOnWorkerThread(std::unique_ptr<Task> task) {
worker_thread_task_runner_->PostTask(std::move(task));
}

void NodePlatform::CallDelayedOnWorkerThread(std::unique_ptr<v8::Task> task,
void NodePlatform::CallDelayedOnWorkerThread(std::unique_ptr<Task> task,
double delay_in_seconds) {
worker_thread_task_runner_->PostDelayedTask(std::move(task),
delay_in_seconds);
Expand Down

0 comments on commit a318cbc

Please sign in to comment.