Lines Matching defs:task
23 // Valid priorities supported by the task scheduling infrastructure.
59 * The idle task is expected to complete by this deadline.
76 * Schedules a task to be invoked by this TaskRunner. The TaskRunner
77 * implementation takes ownership of |task|.
79 virtual void PostTask(std::unique_ptr<Task> task) = 0;
82 * Schedules a task to be invoked by this TaskRunner. The TaskRunner
83 * implementation takes ownership of |task|. The |task| cannot be nested
84 * within other task executions.
96 virtual void PostNonNestableTask(std::unique_ptr<Task> task) {}
99 * Schedules a task to be invoked by this TaskRunner. The task is scheduled
101 * implementation takes ownership of |task|.
103 virtual void PostDelayedTask(std::unique_ptr<Task> task,
107 * Schedules a task to be invoked by this TaskRunner. The task is scheduled
109 * implementation takes ownership of |task|. The |task| cannot be nested
110 * within other task executions.
122 virtual void PostNonNestableDelayedTask(std::unique_ptr<Task> task,
126 * Schedules an idle task to be invoked by this TaskRunner. The task is
129 * relative to other task types and may be starved for an arbitrarily long
131 * ownership of |task|.
133 virtual void PostIdleTask(std::unique_ptr<IdleTask> task) = 0;
158 * Delegate that's passed to Job's worker task, providing an entry point to
164 * Returns true if this thread *must* return from the worker task on the
186 * Returns true if the current task is called from the thread currently
1005 * Returns a TaskRunner which can be used to post a task on the foreground.
1013 * Schedules a task to be invoked on a worker thread.
1019 virtual void CallOnWorkerThread(std::unique_ptr<Task> task) {
1020 PostTaskOnWorkerThreadImpl(TaskPriority::kUserVisible, std::move(task),
1025 * Schedules a task that blocks the main thread to be invoked with
1032 virtual void CallBlockingTaskOnWorkerThread(std::unique_ptr<Task> task) {
1035 CallOnWorkerThread(std::move(task));
1039 * Schedules a task to be invoked with low-priority on a worker thread.
1045 virtual void CallLowPriorityTaskOnWorkerThread(std::unique_ptr<Task> task) {
1048 CallOnWorkerThread(std::move(task));
1052 * Schedules a task to be invoked on a worker thread after |delay_in_seconds|
1059 virtual void CallDelayedOnWorkerThread(std::unique_ptr<Task> task,
1062 std::move(task), delay_in_seconds,
1236 * Schedules a task with |priority| to be invoked on a worker thread.
1240 std::unique_ptr<Task> task,
1244 * Schedules a task with |priority| to be invoked on a worker thread after
1249 TaskPriority priority, std::unique_ptr<Task> task,