From f4b0ec560b1bc17bb4fb7790a1383addbc29e622 Mon Sep 17 00:00:00 2001 From: Reece Wilson Date: Tue, 7 Feb 2023 19:58:21 +0000 Subject: [PATCH] [+] Missing methods in default runner Last aurora commit: 11385c7b --- src/libplatform/default-foreground-task-runner.h | 4 ++++ src/libplatform/default-worker-threads-task-runner.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/libplatform/default-foreground-task-runner.h b/src/libplatform/default-foreground-task-runner.h index 9e6688c8ca..2d5d5c71a4 100644 --- a/src/libplatform/default-foreground-task-runner.h +++ b/src/libplatform/default-foreground-task-runner.h @@ -56,6 +56,10 @@ class V8_PLATFORM_EXPORT DefaultForegroundTaskRunner double delay_in_seconds) override; bool NonNestableTasksEnabled() const override; + inline void PostSignalTask(std::unique_ptr task) override { + this->PostTask(std::move(task)); + } + private: enum Nestability { kNestable, kNonNestable }; diff --git a/src/libplatform/default-worker-threads-task-runner.h b/src/libplatform/default-worker-threads-task-runner.h index 04eb8d4a38..d0022639c0 100644 --- a/src/libplatform/default-worker-threads-task-runner.h +++ b/src/libplatform/default-worker-threads-task-runner.h @@ -41,6 +41,10 @@ class V8_PLATFORM_EXPORT DefaultWorkerThreadsTaskRunner bool IdleTasksEnabled() override; + inline void PostSignalTask(std::unique_ptr task) override { + this->PostTask(std::move(task)); + } + private: class WorkerThread : public base::Thread { public: