Lines Matching refs:tid
411 proc_get_thread_bg_policy(task_t task, uint64_t tid)
418 if (tid == self->thread_id)
423 thread = task_findtid(task, tid);
519 proc_set_bgthreadpolicy(task_t task, uint64_t tid, int prio)
528 if (tid == self->thread_id)
533 thread = task_findtid(task, tid);
546 proc_set_and_apply_bgthreadpolicy(task_t task, uint64_t tid, int prio)
551 error = proc_set_bgthreadpolicy(task, tid, TASK_POLICY_BACKGROUND_ATTRIBUTE_ALL);
553 error = proc_apply_bgthreadpolicy(task, tid);
555 error = proc_restore_bgthreadpolicy(task, tid);
582 proc_add_bgthreadpolicy(task_t task, uint64_t tid, int val)
591 if (tid == self->thread_id)
596 thread = task_findtid(task, tid);
629 proc_remove_bgthreadpolicy(task_t task, uint64_t tid, int val)
638 if (tid == self->thread_id)
643 thread = task_findtid(task, tid);
727 proc_apply_bgthreadpolicy(task_t task, uint64_t tid)
734 if (tid == self->thread_id) {
744 thread = task_findtid(localtask, tid);
923 proc_restore_bgthreadpolicy(task_t task, uint64_t tid)
931 if (tid == self->thread_id)
936 thread = task_findtid(task, tid);
1220 proc_apply_thread_diskacc(task_t task, uint64_t tid, int policy)
1224 if (tid == TID_NULL) {
1229 thread = task_findtid(task, tid);
1905 proc_lf_pidbind(task_t curtask, uint64_t tid, task_t target_task, int bind)
1914 if ((tid == 0) || (tid == self->thread_id)) {
1920 target_thread = task_findtid(curtask, tid);