Home
last modified time | relevance | path

Searched refs:THREAD_NULL (Results 1 – 25 of 92) sorted by relevance

1234

/xnu-10063.141.1/bsd/kern/ !
H A Dsys_ulock.c325 ull->ull_owner = THREAD_NULL; in ull_alloc()
337 assert(ull->ull_owner == THREAD_NULL); in ull_free()
480 if (*owner == THREAD_NULL) { in ulock_resolve_owner()
519 thread_t owner_thread = THREAD_NULL; in sys_ulock_wait2()
520 thread_t old_owner = THREAD_NULL; in sys_ulock_wait2()
678 if (owner_thread == THREAD_NULL) { in sys_ulock_wait2()
707 ull->ull_owner = THREAD_NULL; in sys_ulock_wait2()
709 if (owner_thread != THREAD_NULL) { in sys_ulock_wait2()
763 if (set_owner && owner_thread != THREAD_NULL) { in sys_ulock_wait2()
766 assert(owner_thread == THREAD_NULL); in sys_ulock_wait2()
[all …]
H A Dkern_resource.c928 if (thread != THREAD_NULL && in do_background_socket()
935 if (thread != THREAD_NULL) { in do_background_socket()
947 if (thread == THREAD_NULL) { in do_background_socket()
1859 thread = THREAD_NULL; in iopolicysys_disk()
1900 thread = THREAD_NULL; in iopolicysys_disk()
1948 if (thread != THREAD_NULL) { in iopolicysys_disk()
1955 if (thread != THREAD_NULL) { in iopolicysys_disk()
2084 thread = THREAD_NULL; in iopolicysys_vfs_atime_updates()
2106 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates()
2113 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates()
[all …]
H A Dmach_process.c122 thread_t th_act = THREAD_NULL; in ptrace()
406 if (th_act == THREAD_NULL) { in ptrace()
487 if (th_act == THREAD_NULL) { in ptrace()
/xnu-10063.141.1/osfmk/kern/ !
H A Dsync_sema.c356 if (thread != THREAD_NULL) { in semaphore_signal_internal()
462 if (thread == THREAD_NULL) { in semaphore_signal_thread_trap()
466 thread = THREAD_NULL; in semaphore_signal_thread_trap()
476 if (thread != THREAD_NULL) { in semaphore_signal_thread_trap()
506 THREAD_NULL, in semaphore_signal()
537 THREAD_NULL, in semaphore_signal_internal_trap()
564 THREAD_NULL, in semaphore_signal_all()
588 THREAD_NULL, in semaphore_signal_all_trap()
645 assert(self->handoff_thread == THREAD_NULL); in semaphore_wait_continue()
673 thread_t handoff_thread = THREAD_NULL; in semaphore_wait_internal()
[all …]
H A Dthread_act.c284 if (thread == THREAD_NULL) { in thread_terminate()
323 if (thread == THREAD_NULL) { in thread_terminate_from_user()
345 if (thread == THREAD_NULL) { in thread_terminate_pinned()
415 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_suspend()
443 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_resume()
476 if (thread == THREAD_NULL) { in thread_depress_abort_from_user()
526 if (thread == THREAD_NULL) { in thread_abort()
550 if (thread == THREAD_NULL) { in thread_abort_safely()
593 if (thread == THREAD_NULL) { in thread_info()
622 if (thread == THREAD_NULL) { in thread_get_state_internal()
[all …]
H A Dsched_dualq.c227 return THREAD_NULL; in sched_dualq_choose_thread()
241 return THREAD_NULL; in sched_dualq_choose_thread()
250 if (potential_thread == THREAD_NULL) { in sched_dualq_choose_thread()
251 return THREAD_NULL; in sched_dualq_choose_thread()
260 return THREAD_NULL; in sched_dualq_choose_thread()
266 return THREAD_NULL; in sched_dualq_choose_thread()
278 return THREAD_NULL; in sched_dualq_choose_thread()
480 return THREAD_NULL; in sched_dualq_steal_thread()
514 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_dualq_thread_update_scan()
H A Dsched_grrr.c337 return THREAD_NULL; in sched_grrr_steal_thread()
381 while ((thread = sched_grrr_choose_thread(processor, IDLEPRI, AST_NONE)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown()
389 while ((thread = (thread_t)(void *)dequeue_head(&bqueue)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown()
395 while ((thread = (thread_t)(void *)dequeue_head(&tqueue)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown()
598 return THREAD_NULL; in grrr_intragroup_schedule()
602 if (thread == THREAD_NULL) { in grrr_intragroup_schedule()
625 return THREAD_NULL; in grrr_intergroup_schedule()
695 runq->groups[index].current_client = THREAD_NULL; in grrr_runqueue_init()
737 if (group->current_client == THREAD_NULL || in grrr_enqueue()
765 if (thread != THREAD_NULL) { in grrr_select()
[all …]
H A Dsyscall_subr.c201 thread_t thread = THREAD_NULL; in thread_switch()
255 if (thread != THREAD_NULL) { in thread_switch()
272 if (thread != THREAD_NULL) { in thread_switch()
282 if (pulled_thread != THREAD_NULL) { in thread_switch()
357 if (thread != THREAD_NULL) { in thread_handoff_internal()
372 if (pulled_thread != THREAD_NULL) { in thread_handoff_internal()
H A Dsched_traditional.c332 if (thread != THREAD_NULL) { in sched_traditional_choose_thread()
384 return THREAD_NULL; in sched_traditional_choose_thread_from_runq()
570 while ((thread = cqe_dequeue_head(&tqueue, struct thread, runq_links)) != THREAD_NULL) { in sched_traditional_processor_queue_shutdown()
660 return THREAD_NULL; in sched_traditional_steal_processor_thread()
694 if (thread != THREAD_NULL) { in sched_traditional_steal_thread()
714 return THREAD_NULL; in sched_traditional_steal_thread()
747 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_traditional_thread_update_scan()
H A Dthread.c723 assert(thread->handoff_thread == THREAD_NULL); in thread_terminate_self()
745 if (thread == THREAD_NULL) { in thread_ref_release()
1331 assert(vm_pageout_scan_thread == THREAD_NULL); in thread_create_internal()
2042 if (thread == THREAD_NULL) { in thread_info_internal()
2153 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in thread_info_internal()
3044 return thread != THREAD_NULL? thread->thread_id: 0; in thread_tid()
3209 if (thread == THREAD_NULL) { in thread_dispatchqaddr()
3238 if (thread == THREAD_NULL) { in thread_wqquantum_addr()
3266 if (thread == THREAD_NULL) { in thread_rettokern_addr()
3314 if (thread != THREAD_NULL) { in thread_reference()
[all …]
H A Dsched_amp.c254 return THREAD_NULL; in sched_amp_choose_thread()
264 return THREAD_NULL; in sched_amp_choose_thread()
490 thread_t thread = THREAD_NULL; in sched_amp_steal_thread()
502 return THREAD_NULL; in sched_amp_steal_thread()
568 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_amp_thread_update_scan()
H A Dmk_sp.c84 if (thread == THREAD_NULL || in thread_set_policy()
198 if (thread == THREAD_NULL) { in thread_policy()
H A Dexclaves_boot.c67 static thread_t exclaves_boot_thread = THREAD_NULL;
231 exclaves_boot_thread = THREAD_NULL; in exclaves_boot_stage_2()
H A Dsched_clutch.c2534 return THREAD_NULL; in sched_clutch_thread_highest_remove()
2537 thread_t highest_thread = THREAD_NULL; in sched_clutch_thread_highest_remove()
2627 thread_t thread = THREAD_NULL; in sched_clutch_root_highest_foreign_thread_remove()
2811 if (thread == THREAD_NULL) { in sched_clutch_initial_quantum_size()
2875 return THREAD_NULL; in sched_clutch_choose_thread()
2887 return THREAD_NULL; in sched_clutch_choose_thread()
2890 thread_t thread = THREAD_NULL; in sched_clutch_choose_thread()
3072 return THREAD_NULL; in sched_clutch_steal_thread()
3106 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_clutch_thread_update_scan()
3540 return THREAD_NULL; in sched_edge_choose_thread()
[all …]
H A Dextmod_statistics.c94 if ((ctask == kernel_task) || (target == THREAD_NULL)) { in extmod_statistics_incr_thread_set_state()
H A Dipc_tt.c1694 if (thread == THREAD_NULL) { in thread_get_special_port()
1736 if (thread == THREAD_NULL) { in thread_get_special_port_from_user()
1840 if (thread == THREAD_NULL) { in thread_set_special_port()
3072 thread_t thread = THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3080 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3085 if (thread == THREAD_NULL) { in convert_port_to_thread_with_flavor_locked()
3086 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3091 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3099 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3104 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
[all …]
H A Dsched_prim.c527 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_rt_quanta()
549 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_fixed_quanta()
1783 if (__improbable(thread == THREAD_NULL)) { in thread_wakeup_thread()
2011 assert(thread != THREAD_NULL); in sched_vm_group_maintenance()
2060 assert(thread != THREAD_NULL); in sched_vm_group_maintenance()
2487 thread_t new_thread = THREAD_NULL; in thread_select()
2755 if (new_thread != THREAD_NULL) { in thread_select()
2848 if ((new_thread = SCHED(choose_thread)(processor, MINPRI, *reason)) != THREAD_NULL) { in thread_select()
2891 if ((new_thread = SCHED(steal_thread)(pset)) != THREAD_NULL) { in thread_select()
2968 } while (new_thread == THREAD_NULL); in thread_select()
[all …]
/xnu-10063.141.1/bsd/net/ !
H A Dflowadv.c108 static thread_t fadv_thread = THREAD_NULL;
152 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add()
166 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add_entry()
H A Dnwk_wq.c53 thread_t nwk_wq_thread __single = THREAD_NULL; in nwk_wq_init()
/xnu-10063.141.1/osfmk/ipc/ !
H A Dipc_eventlink.c182 ipc_eventlink->el_thread = THREAD_NULL; in ipc_eventlink_initialize()
292 temp_ipc_eventlink->el_thread = THREAD_NULL; in ipc_eventlink_destroy_internal()
332 if (associated_thread[i] != THREAD_NULL && in ipc_eventlink_destroy_internal()
714 thread_t handoff_thread = THREAD_NULL; in ipc_eventlink_signal_wait_internal()
774 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal()
784 self->handoff_thread = THREAD_NULL; in ipc_eventlink_signal_wait_internal()
794 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal()
808 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal()
/xnu-10063.141.1/tests/ !
H A Dcontextswitch.c145 thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0); in thread()
148 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread()
155 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread()
/xnu-10063.141.1/osfmk/corpses/ !
H A Dcorpse.c464 if (thread != THREAD_NULL) { in task_generate_corpse()
622 thread_t thread = THREAD_NULL; in task_enqueue_exception_with_corpse()
630 if (thread == THREAD_NULL) { in task_enqueue_exception_with_corpse()
667 thread_t thread = THREAD_NULL; in task_generate_corpse_internal()
668 thread_t thread_next = THREAD_NULL; in task_generate_corpse_internal()
808 if (thread != THREAD_NULL) { in task_generate_corpse_internal()
/xnu-10063.141.1/bsd/nfs/ !
H A Dnfs_upcall.c197 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_init()
275 if (nfsrv_uc_queue_tbl[i].ucq_thd != THREAD_NULL) { in nfsrv_uc_stop()
278 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_stop()
/xnu-10063.141.1/osfmk/mach/ !
H A Dmach_types.h300 #define THREAD_NULL ((thread_t) NULL) macro
330 #define THREAD_NULL ((thread_t) 0) macro
/xnu-10063.141.1/bsd/net/pktsched/ !
H A Dpktsched_netem.c1136 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in nlc_enqueue()
1315 ne->netem_output_thread = THREAD_NULL; in netem_create()
1341 if (ne->netem_output_thread != THREAD_NULL) { in netem_destroy()
1367 ne->netem_output_thread = THREAD_NULL; in netem_destroy()
1369 ASSERT(ne->netem_output_thread == THREAD_NULL); in netem_destroy()
1532 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in netem_set_params()

1234