parent
11385c7b85
commit
f4b0ec560b
@ -56,6 +56,10 @@ class V8_PLATFORM_EXPORT DefaultForegroundTaskRunner
|
|||||||
double delay_in_seconds) override;
|
double delay_in_seconds) override;
|
||||||
bool NonNestableTasksEnabled() const override;
|
bool NonNestableTasksEnabled() const override;
|
||||||
|
|
||||||
|
inline void PostSignalTask(std::unique_ptr<Task> task) override {
|
||||||
|
this->PostTask(std::move(task));
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum Nestability { kNestable, kNonNestable };
|
enum Nestability { kNestable, kNonNestable };
|
||||||
|
|
||||||
|
@ -41,6 +41,10 @@ class V8_PLATFORM_EXPORT DefaultWorkerThreadsTaskRunner
|
|||||||
|
|
||||||
bool IdleTasksEnabled() override;
|
bool IdleTasksEnabled() override;
|
||||||
|
|
||||||
|
inline void PostSignalTask(std::unique_ptr<Task> task) override {
|
||||||
|
this->PostTask(std::move(task));
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
class WorkerThread : public base::Thread {
|
class WorkerThread : public base::Thread {
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user