Lines Matching defs:task
20 // Valid priorities supported by the task scheduling infrastructure.
56 * The idle task is expected to complete by this deadline.
73 * Schedules a task to be invoked by this TaskRunner. The TaskRunner
74 * implementation takes ownership of |task|.
76 virtual void PostTask(std::unique_ptr<Task> task) = 0;
79 * Schedules a task to be invoked by this TaskRunner. The TaskRunner
80 * implementation takes ownership of |task|. The |task| cannot be nested
81 * within other task executions.
93 virtual void PostNonNestableTask(std::unique_ptr<Task> task) {}
96 * Schedules a task to be invoked by this TaskRunner. The task is scheduled
98 * implementation takes ownership of |task|.
100 virtual void PostDelayedTask(std::unique_ptr<Task> task,
104 * Schedules a task to be invoked by this TaskRunner. The task is scheduled
106 * implementation takes ownership of |task|. The |task| cannot be nested
107 * within other task executions.
119 virtual void PostNonNestableDelayedTask(std::unique_ptr<Task> task,
123 * Schedules an idle task to be invoked by this TaskRunner. The task is
126 * relative to other task types and may be starved for an arbitrarily long
128 * ownership of |task|.
130 virtual void PostIdleTask(std::unique_ptr<IdleTask> task) = 0;
155 * Delegate that's passed to Job's worker task, providing an entry point to
161 * Returns true if this thread should return from the worker task on the
182 * Returns true if the current task is called from the thread currently
939 * Returns a TaskRunner which can be used to post a task on the foreground.
947 * Schedules a task to be invoked on a worker thread.
949 virtual void CallOnWorkerThread(std::unique_ptr<Task> task) = 0;
952 * Schedules a task that blocks the main thread to be invoked with
955 virtual void CallBlockingTaskOnWorkerThread(std::unique_ptr<Task> task) {
958 CallOnWorkerThread(std::move(task));
962 * Schedules a task to be invoked with low-priority on a worker thread.
964 virtual void CallLowPriorityTaskOnWorkerThread(std::unique_ptr<Task> task) {
967 CallOnWorkerThread(std::move(task));
971 * Schedules a task to be invoked on a worker thread after |delay_in_seconds|
974 virtual void CallDelayedOnWorkerThread(std::unique_ptr<Task> task,