Skip to content

Commit 8069494

Browse files
juanarbolBethGriggs
authored andcommitted
src: elevate v8::Task namespace
PR-URL: #26909 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Signed-off-by: Beth Griggs <Bethany.Griggs@uk.ibm.com>
1 parent 12737b3 commit 8069494

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/node_platform.cc

+5-5
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ class WorkerThreadsTaskRunner::DelayedTaskScheduler {
158158
}
159159

160160
uv_sem_t ready_;
161-
TaskQueue<v8::Task>* pending_worker_tasks_;
161+
TaskQueue<Task>* pending_worker_tasks_;
162162

163-
TaskQueue<v8::Task> tasks_;
163+
TaskQueue<Task> tasks_;
164164
uv_loop_t loop_;
165165
uv_async_t flush_tasks_;
166166
std::unordered_set<uv_timer_t*> timers_;
@@ -201,7 +201,7 @@ void WorkerThreadsTaskRunner::PostTask(std::unique_ptr<Task> task) {
201201
pending_worker_tasks_.Push(std::move(task));
202202
}
203203

204-
void WorkerThreadsTaskRunner::PostDelayedTask(std::unique_ptr<v8::Task> task,
204+
void WorkerThreadsTaskRunner::PostDelayedTask(std::unique_ptr<Task> task,
205205
double delay_in_seconds) {
206206
delayed_task_scheduler_->PostDelayedTask(std::move(task), delay_in_seconds);
207207
}
@@ -408,11 +408,11 @@ bool PerIsolatePlatformData::FlushForegroundTasksInternal() {
408408
return did_work;
409409
}
410410

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

415-
void NodePlatform::CallDelayedOnWorkerThread(std::unique_ptr<v8::Task> task,
415+
void NodePlatform::CallDelayedOnWorkerThread(std::unique_ptr<Task> task,
416416
double delay_in_seconds) {
417417
worker_thread_task_runner_->PostDelayedTask(std::move(task),
418418
delay_in_seconds);

0 commit comments

Comments
 (0)