Lines Matching defs:task
30 #include <kern/task.h>
37 * shared by a task family, this controls affinity tag lookup and
44 * - The task lock protects the creation of an affinity namespace.
46 * and its thread membership. This includes its destruction when the task
52 * The lock ordering is: task lock, thread mutex, namespace mutex, thread lock.
127 task_lock(thread->task);
128 aspc = thread->task->affinity_space;
130 task_unlock(thread->task);
134 task_lock(thread->task);
135 if (thread->task->affinity_space == NULL) {
136 thread->task->affinity_space = new_aspc;
139 aspc = thread->task->affinity_space;
141 task_unlock(thread->task);
213 * Called from task create.
225 * Bump the task reference count on the shared namespace and
239 task_affinity_deallocate(task_t task)
241 affinity_space_t aspc = task->affinity_space;
244 task, aspc, aspc->aspc_task_count);
258 * Return affinity tag info (number, min, max) for the task.
260 * Conditions: task is locked.
264 task_t task,
279 aspc = task->affinity_space;
318 assert(aspc == parent->task->affinity_space);
319 assert(aspc == child->task->affinity_space);
396 * entering it into a list anchored by the owning task.
420 * after removing it from the parent task.
486 * Find an affinity set in the parent task with the given affinity tag.
510 * belonging to the owning the task.