Searched refs:THREAD_NULL (Results 1 - 25 of 60) sorted by relevance

123

/macosx-10.10/xnu-2782.1.97/osfmk/kern/
H A Dtask_policy.c196 #define tpriority(task, thread) ((uintptr_t)(thread == THREAD_NULL ? (task->priority) : (thread->priority)))
197 #define tisthread(thread) (thread == THREAD_NULL ? TASK_POLICY_TASK : TASK_POLICY_THREAD)
198 #define targetid(task, thread) ((uintptr_t)(thread == THREAD_NULL ? (audit_token_pid_from_task(task)) : (thread->thread_id)))
309 proc_set_task_policy(task, THREAD_NULL,
318 proc_set_task_policy(task, THREAD_NULL,
328 proc_set_task_policy(task, THREAD_NULL,
354 proc_set_task_policy2(task, THREAD_NULL, TASK_POLICY_ATTRIBUTE,
416 proc_selfpid(), audit_token_pid_from_task(task), trequested_0(task, THREAD_NULL),
417 trequested_1(task, THREAD_NULL), 0);
429 task_policy_update_locked(task, THREAD_NULL,
[all...]
H A Dsched_grrr.c327 return (THREAD_NULL);
373 while ((thread = sched_grrr_choose_thread(processor, IDLEPRI, AST_NONE)) != THREAD_NULL) {
381 while ((thread = (thread_t)(void *)dequeue_head(&bqueue)) != THREAD_NULL) {
387 while ((thread = (thread_t)(void *)dequeue_head(&tqueue)) != THREAD_NULL) {
600 return THREAD_NULL;
604 if (thread == THREAD_NULL) {
627 return THREAD_NULL;
697 runq->groups[index].current_client = THREAD_NULL;
743 if (group->current_client == THREAD_NULL ||
771 if (thread != THREAD_NULL) {
[all...]
H A Dthread_act.c153 if (thread == THREAD_NULL)
222 if (thread == THREAD_NULL || thread->task == kernel_task)
252 if (thread == THREAD_NULL || thread->task == kernel_task)
290 if (thread == THREAD_NULL)
337 if (thread == THREAD_NULL)
360 if (thread == THREAD_NULL)
401 if (thread == THREAD_NULL)
426 if (thread == THREAD_NULL)
476 if (thread == THREAD_NULL)
556 if (thread == THREAD_NULL)
[all...]
H A Dextmod_statistics.c93 if ((ctask == kernel_task) || (target == THREAD_NULL))
H A Dsched_dualq.c199 return THREAD_NULL;
212 return (THREAD_NULL);
339 while ((thread = (thread_t)(void*)dequeue_head(&tqueue)) != THREAD_NULL) {
406 return (THREAD_NULL);
439 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) {
H A Dsync_sema.c316 if (thread != THREAD_NULL) {
420 if (thread == THREAD_NULL)
423 thread = THREAD_NULL;
432 if (thread != THREAD_NULL) {
461 THREAD_NULL,
491 THREAD_NULL,
516 THREAD_NULL,
539 THREAD_NULL,
662 THREAD_NULL,
H A Dsyscall_subr.c319 thread = THREAD_NULL;
323 thread = THREAD_NULL;
326 thread = THREAD_NULL;
330 if (thread != THREAD_NULL) {
340 thread = THREAD_NULL;
357 if (thread != THREAD_NULL) {
H A Dthread.c515 if (thread == THREAD_NULL)
580 while ((thread = (thread_t)dequeue_head(&thread_terminate_queue)) != THREAD_NULL) {
676 while ((thread = (thread_t)dequeue_head(&thread_stack_queue)) != THREAD_NULL) {
765 if (first_thread == THREAD_NULL)
769 if (new_thread == THREAD_NULL)
1213 if (thread == THREAD_NULL)
1398 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL);
2010 return (thread != THREAD_NULL? thread->thread_id: 0);
2027 if (thread != THREAD_NULL) {
2048 if (thread != THREAD_NULL)
[all...]
H A Dsched_prim.c1787 thread_t new_thread = THREAD_NULL;
1855 if ((thread->sched_mode != TH_MODE_FAIRSHARE || SCHED(fairshare_runq_count)() == 0) && (rt_runq.count == 0 || BASEPRI_RTQUEUES < thread->sched_pri) && (new_thread = SCHED(choose_thread)(processor, thread->sched_mode == TH_MODE_FAIRSHARE ? MINPRI : thread->sched_pri, reason)) == THREAD_NULL) {
1869 if (new_thread != THREAD_NULL ||
1871 (new_thread = SCHED(choose_thread)(processor, MINPRI, reason)) != THREAD_NULL)) {
1904 if ((new_thread = SCHED(fairshare_dequeue)()) != THREAD_NULL) {
1919 if (new_thread != THREAD_NULL) {
1980 } while (new_thread == THREAD_NULL);
2108 if (thread != THREAD_NULL) {
2126 * Associated pset must be locked. Returns THREAD_NULL
2168 return (THREAD_NULL);
[all...]
H A Dmk_sp.c83 if ( thread == THREAD_NULL ||
202 if (thread == THREAD_NULL)
H A Dipc_tt.c793 if (thread == THREAD_NULL)
842 if (thread == THREAD_NULL)
1380 thread_t thread = THREAD_NULL;
1388 assert(thread != THREAD_NULL);
1411 thread_t thread = THREAD_NULL;
1418 return (THREAD_NULL);
1626 if (thread == THREAD_NULL)
1804 if (thread == THREAD_NULL)
2016 if (thread == THREAD_NULL)
H A Dhv_support.c70 static thread_t hv_mp_notify_thread = THREAD_NULL;
H A Dprocessor.c155 processor->active_thread = processor->next_thread = processor->idle_thread = THREAD_NULL;
478 if (processor->idle_thread == THREAD_NULL) {
496 if ( processor->active_thread == THREAD_NULL &&
497 processor->next_thread == THREAD_NULL ) {
H A Dstartup.c599 if (processor->next_thread == THREAD_NULL) {
606 processor->next_thread = THREAD_NULL;
H A Dwait_queue.c1635 thread_t t = THREAD_NULL;
1636 thread_t fifo_thread = THREAD_NULL;
1647 return THREAD_NULL;
1685 if (t != THREAD_NULL) {
1704 if (fifo_thread == THREAD_NULL) {
1733 t = THREAD_NULL;
1742 if (fifo_thread != THREAD_NULL) {
1751 return THREAD_NULL;
H A Dsched_multiq.c519 assert(thread != THREAD_NULL);
975 * Returns THREAD_NULL if it cannot find a valid thread.
995 return THREAD_NULL;
1008 return (THREAD_NULL);
1268 while ((thread = (thread_t)(void*)dequeue_head(&tqueue)) != THREAD_NULL) {
1325 return (THREAD_NULL);
1389 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) {
/macosx-10.10/xnu-2782.1.97/bsd/net/
H A Dflowadv.c105 static thread_t fadv_thread = THREAD_NULL;
176 if (!fadv_active && fadv_thread != THREAD_NULL)
/macosx-10.10/xnu-2782.1.97/bsd/nfs/
H A Dnfs_upcall.c182 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL;
258 if (nfsrv_uc_queue_tbl[i].ucq_thd != THREAD_NULL)
260 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL;
/macosx-10.10/xnu-2782.1.97/bsd/uxkern/
H A Dux_exception.c194 thread_t thread = THREAD_NULL;
261 th_act = THREAD_NULL;
267 if (th_act != THREAD_NULL) {
/macosx-10.10/xnu-2782.1.97/bsd/kern/
H A Dkern_sfi.c177 proc_set_task_policy(p->task, THREAD_NULL,
243 managed_enabled = proc_get_task_policy(targetp->task, THREAD_NULL, TASK_POLICY_ATTRIBUTE, TASK_POLICY_SFI_MANAGED);
H A Dmach_process.c333 if (th_act == THREAD_NULL) {
406 if (th_act == THREAD_NULL)
H A Dkern_resource.c632 proc_set_task_policy(proc_task(targetp), THREAD_NULL, local
665 role = proc_get_task_policy(proc_task(targetp), THREAD_NULL,
709 *priority = proc_get_task_policy(current_task(), THREAD_NULL, external, TASK_POLICY_DARWIN_BG);
760 proc_set_task_policy(proc_task(targetp), THREAD_NULL, external, TASK_POLICY_DARWIN_BG, enable); local
777 if (thread != THREAD_NULL)
788 if (thread == THREAD_NULL) {
1500 thread = THREAD_NULL;
1536 thread = THREAD_NULL;
/macosx-10.10/libpthread-105.1.4/kern/
H A Dkern_support.c559 if ((th = port_name_to_thread(kport)) == THREAD_NULL) {
677 (void)workqueue_run_nextreq(p, wq, THREAD_NULL, FALSE, FALSE, 0);
747 if ((th = port_name_to_thread(kport)) == THREAD_NULL) {
780 if ((th = port_name_to_thread(kport)) == THREAD_NULL) {
815 if ((th = port_name_to_thread(kport)) == THREAD_NULL) {
1141 retval = workqueue_run_nextreq(p, wq, THREAD_NULL, FALSE, FALSE, 0);
1256 (void)workqueue_run_nextreq(p, wq, THREAD_NULL, force_oc, overcommit, pthread_priority_from_class_index(priority));
1886 ran_one = workqueue_run_nextreq(p, wq, THREAD_NULL, FALSE, overcommit, priority);
1907 thread_t th_to_run = THREAD_NULL;
1908 thread_t th_to_park = THREAD_NULL;
[all...]
/macosx-10.10/xnu-2782.1.97/osfmk/mach/
H A Dmach_types.h256 #define THREAD_NULL ((thread_t) 0) macro
/macosx-10.10/xnu-2782.1.97/osfmk/vm/
H A Dpmap.h385 PMAP_ACTIVATE(pmap_kernel(), THREAD_NULL, cpu)
394 PMAP_DEACTIVATE(pmap_kernel(), THREAD_NULL, cpu)

Completed in 274 milliseconds

123