Lines Matching refs:thread
173 thread_t thread = NULL;
189 BASEPRI_PREEMPT - 1, &thread) != KERN_SUCCESS) {
192 thread->options |= TH_OPT_VMPRIV;
193 vm_swapout_thread_id = thread->thread_id;
195 thread_deallocate(thread);
198 BASEPRI_PREEMPT - 1, &thread) != KERN_SUCCESS) {
201 thread->options |= TH_OPT_VMPRIV;
203 thread_deallocate(thread);
207 BASEPRI_PREEMPT - 1, &thread) != KERN_SUCCESS) {
210 thread_deallocate(thread);
212 proc_set_task_policy_thread(kernel_task, thread->thread_id,
214 proc_set_task_policy_thread(kernel_task, thread->thread_id,
243 * Also, this function is only called from the vm_pageout_scan thread
444 * still allow any thread waiting to acquire the
564 * force this thread to be set to the correct
802 * Also, this function is only called from the swapfile management thread.
1221 * is run on the same thread as this function