Lines Matching full:task

42 // specific task class will inherit from this one.
44 class Task
47 Task() in Task() function
50 virtual ~Task() in ~Task()
53 // Check whether the Task can be run now. This method is only
54 // called with the workqueue lock held. If the Task can run, this
56 // must be released before the Task can run.
60 // Lock all the resources required by the Task, and store the locks
67 // Run the task.
71 // Return whether this task should run soon.
76 // Note that this task should run soon.
81 // Get the next Task on the list of Tasks. Called by Task_list.
82 Task*
86 // Set the next Task on the list of Tasks. Called by Task_list.
88 set_list_next(Task* t) in set_list_next()
94 // Clear the next Task on the list of Tasks. Called by Task_list.
99 // Return the name of the Task. This is only used for debugging
110 // Get the name of the task. This must be implemented by the child
117 Task(const Task&);
118 Task& operator=(const Task&);
120 // If this Task is on a list, this is a pointer to the next Task on
124 Task* list_next_;
125 // Task name, for debugging purposes.
127 // Whether this Task should be executed soon. This is used for
142 run(Workqueue*, const Task*) = 0;
145 // A simple task which waits for a blocker and then runs a function.
147 class Task_function : public Task
151 // deleted after the task runs.
163 // The standard task methods.
165 // Wait until the task is unblocked.
170 // This type of task does not normally hold any locks.
204 // Add a new task to the work queue.
206 queue(Task*);
208 // Add a new task to the work queue which should run soon. If the
209 // task is ready, it will be run before any tasks added using
212 queue_soon(Task*);
214 // Add a new task to the work queue which should run next if it is
217 queue_next(Task*);
241 // Add a task to a queue.
243 add_to_queue(Task_list* queue, Task* t, bool front);
245 // Find a runnable task, or wait for one.
246 Task*
249 // Find a runnable task.
250 Task*
253 // Find a runnable task in a list.
254 Task*
257 // Find an run a task.
261 // Release the locks for a Task. Return the next Task to run.
262 Task*
263 release_locks(Task*, Task_locker*);
267 return_or_queue(Task* t, bool is_blocker, Task** pret);
285 // there may be a new Task to execute.