#include "src/libplatform/default-worker-threads-task-runner.h"
#include "src/base/platform/time.h"
#include "src/libplatform/delayed-task-queue.h"
namespace v8 {
namespace platform {
DefaultWorkerThreadsTaskRunner::DefaultWorkerThreadsTaskRunner(
uint32_t thread_pool_size, TimeFunction time_function,
base::Thread::Priority priority)
: … { … }
DefaultWorkerThreadsTaskRunner::~DefaultWorkerThreadsTaskRunner() = default;
double DefaultWorkerThreadsTaskRunner::MonotonicallyIncreasingTime() { … }
void DefaultWorkerThreadsTaskRunner::Terminate() { … }
void DefaultWorkerThreadsTaskRunner::PostTaskImpl(
std::unique_ptr<Task> task, const SourceLocation& location) { … }
void DefaultWorkerThreadsTaskRunner::PostDelayedTaskImpl(
std::unique_ptr<Task> task, double delay_in_seconds,
const SourceLocation& location) { … }
void DefaultWorkerThreadsTaskRunner::PostIdleTaskImpl(
std::unique_ptr<IdleTask> task, const SourceLocation& location) { … }
bool DefaultWorkerThreadsTaskRunner::IdleTasksEnabled() { … }
DefaultWorkerThreadsTaskRunner::WorkerThread::WorkerThread(
DefaultWorkerThreadsTaskRunner* runner, base::Thread::Priority priority)
: … { … }
DefaultWorkerThreadsTaskRunner::WorkerThread::~WorkerThread() { … }
void DefaultWorkerThreadsTaskRunner::WorkerThread::Run() { … }
void DefaultWorkerThreadsTaskRunner::WorkerThread::Notify() { … }
}
}