Home
last modified time | relevance | path

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

1234

/xnu-8019.80.24/bsd/kern/
H A Dsys_ulock.c296 ull->ull_owner = THREAD_NULL; in ull_alloc()
308 assert(ull->ull_owner == THREAD_NULL); in ull_free()
451 if (*owner == THREAD_NULL) { in ulock_resolve_owner()
490 thread_t owner_thread = THREAD_NULL; in ulock_wait2()
491 thread_t old_owner = THREAD_NULL; in ulock_wait2()
649 if (owner_thread == THREAD_NULL) { in ulock_wait2()
678 ull->ull_owner = THREAD_NULL; in ulock_wait2()
680 if (owner_thread != THREAD_NULL) { in ulock_wait2()
730 if (set_owner && owner_thread != THREAD_NULL) { in ulock_wait2()
733 assert(owner_thread == THREAD_NULL); in ulock_wait2()
[all …]
H A Dkern_resource.c802 if (thread != THREAD_NULL && in do_background_socket()
809 if (thread != THREAD_NULL) { in do_background_socket()
821 if (thread == THREAD_NULL) { in do_background_socket()
1709 thread = THREAD_NULL; in iopolicysys_disk()
1750 thread = THREAD_NULL; in iopolicysys_disk()
1798 if (thread != THREAD_NULL) { in iopolicysys_disk()
1805 if (thread != THREAD_NULL) { in iopolicysys_disk()
1934 thread = THREAD_NULL; in iopolicysys_vfs_atime_updates()
1956 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates()
1963 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates()
[all …]
/xnu-8019.80.24/osfmk/kern/
H A Dthread_act.c202 if (thread == THREAD_NULL) { in thread_terminate()
241 if (thread == THREAD_NULL) { in thread_terminate_from_user()
263 if (thread == THREAD_NULL) { in thread_terminate_pinned()
333 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_suspend()
361 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_resume()
394 if (thread == THREAD_NULL) { in thread_depress_abort_from_user()
444 if (thread == THREAD_NULL) { in thread_abort()
468 if (thread == THREAD_NULL) { in thread_abort_safely()
511 if (thread == THREAD_NULL) { in thread_info()
539 if (thread == THREAD_NULL) { in thread_get_state_internal()
[all …]
H A Dsync_sema.c376 if (thread != THREAD_NULL) { in semaphore_signal_internal()
488 if (thread == THREAD_NULL) { in semaphore_signal_thread_trap()
492 thread = THREAD_NULL; in semaphore_signal_thread_trap()
502 if (thread != THREAD_NULL) { in semaphore_signal_thread_trap()
532 THREAD_NULL, in semaphore_signal()
563 THREAD_NULL, in semaphore_signal_internal_trap()
590 THREAD_NULL, in semaphore_signal_all()
614 THREAD_NULL, in semaphore_signal_all_trap()
671 assert(self->handoff_thread == THREAD_NULL); in semaphore_wait_continue()
699 thread_t handoff_thread = THREAD_NULL; in semaphore_wait_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.c336 return THREAD_NULL; in sched_grrr_steal_thread()
380 while ((thread = sched_grrr_choose_thread(processor, IDLEPRI, AST_NONE)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown()
388 while ((thread = (thread_t)(void *)dequeue_head(&bqueue)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown()
394 while ((thread = (thread_t)(void *)dequeue_head(&tqueue)) != THREAD_NULL) { in sched_grrr_processor_queue_shutdown()
597 return THREAD_NULL; in grrr_intragroup_schedule()
601 if (thread == THREAD_NULL) { in grrr_intragroup_schedule()
624 return THREAD_NULL; in grrr_intergroup_schedule()
694 runq->groups[index].current_client = THREAD_NULL; in grrr_runqueue_init()
736 if (group->current_client == THREAD_NULL || in grrr_enqueue()
764 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()
691 return THREAD_NULL; in sched_traditional_steal_processor_thread()
725 if (thread != THREAD_NULL) { in sched_traditional_steal_thread()
745 return THREAD_NULL; in sched_traditional_steal_thread()
778 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_traditional_thread_update_scan()
H A Dthread.c674 assert(thread->handoff_thread == THREAD_NULL); in thread_terminate_self()
693 if (thread == THREAD_NULL) { in thread_ref_release()
1204 assert(vm_pageout_scan_thread == THREAD_NULL); in thread_create_internal()
1916 if (thread == THREAD_NULL) { in thread_info_internal()
2027 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in thread_info_internal()
2892 return thread != THREAD_NULL? thread->thread_id: 0; in thread_tid()
3057 if (thread == THREAD_NULL) { in thread_dispatchqaddr()
3085 if (thread == THREAD_NULL) { in thread_wqquantum_addr()
3112 if (thread == THREAD_NULL) { in thread_rettokern_addr()
3159 if (thread != THREAD_NULL) { in thread_reference()
[all …]
H A Dsched_amp.c248 return THREAD_NULL; in sched_amp_choose_thread()
258 return THREAD_NULL; in sched_amp_choose_thread()
486 thread_t thread = THREAD_NULL; in sched_amp_steal_thread()
498 return THREAD_NULL; in sched_amp_steal_thread()
564 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_amp_thread_update_scan()
H A Dlock_rw.c1040 assertf(owner == THREAD_NULL, "state=0x%x, owner=%p", ordered_load_rw(lock), owner); in lck_rw_lock_exclusive_check_contended()
1074 assertf(owner == THREAD_NULL, "state=0x%x, owner=%p", ordered_load_rw(lock), owner); in lck_rw_lock_exclusive_internal_inline()
1283 assertf(owner == THREAD_NULL, "state=0x%x, owner=%p", ordered_load_rw(lock), owner); in lck_rw_lock_shared_internal_inline()
1549 assertf(owner == THREAD_NULL, "state=0x%x, owner=%p", ordered_load_rw(lock), owner); in lck_rw_lock_shared_to_exclusive()
1634 ordered_store_rw_owner(lock, THREAD_NULL); in lck_rw_lock_exclusive_to_shared()
1754 assertf(owner == THREAD_NULL, "state=0x%x, owner=%p", ordered_load_rw(lock), owner); in lck_rw_try_lock_shared_internal_inline()
1837 assertf(owner == THREAD_NULL, "state=0x%x, owner=%p", ordered_load_rw(lock), owner); in lck_rw_try_lock_exclusive_internal_inline()
2037 …assertf(lock->lck_rw_owner == THREAD_NULL, "state=0x%x, owner=%p", lock->lck_rw_data, lock->lck_rw… in lck_rw_done()
2055 ordered_store_rw_owner(lock, THREAD_NULL); in lck_rw_done()
2100 …assertf(lck->lck_rw_owner == THREAD_NULL, "state=0x%x, owner=%p", lck->lck_rw_data, lck->lck_rw_ow… in lck_rw_unlock_shared()
[all …]
H A Dux_handler.c140 thread_t target_thread = THREAD_NULL; in catch_mach_exception_raise()
143 if ((target_thread = convert_port_to_thread(thread_port)) == THREAD_NULL) { in catch_mach_exception_raise()
H A Dmk_sp.c84 if (thread == THREAD_NULL || in thread_set_policy()
198 if (thread == THREAD_NULL) { in thread_policy()
H A Dipc_tt.c1617 if (thread == THREAD_NULL) { in thread_get_special_port()
1651 if (thread == THREAD_NULL) { in thread_get_special_port_from_user()
1755 if (thread == THREAD_NULL) { in thread_set_special_port()
3017 thread_t thread = THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3025 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3030 if (thread == THREAD_NULL) { in convert_port_to_thread_with_flavor_locked()
3031 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3036 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3044 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3049 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
[all …]
H A Dsched_clutch.c2545 return THREAD_NULL; in sched_clutch_thread_highest_remove()
2548 thread_t highest_thread = THREAD_NULL; in sched_clutch_thread_highest_remove()
2638 thread_t thread = THREAD_NULL; in sched_clutch_root_highest_foreign_thread_remove()
2818 if (thread == THREAD_NULL) { in sched_clutch_initial_quantum_size()
2882 return THREAD_NULL; in sched_clutch_choose_thread()
2894 return THREAD_NULL; in sched_clutch_choose_thread()
2897 thread_t thread = THREAD_NULL; in sched_clutch_choose_thread()
3080 return THREAD_NULL; in sched_clutch_steal_thread()
3114 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_clutch_thread_update_scan()
3578 return THREAD_NULL; in sched_edge_choose_thread()
[all …]
H A Dwaitq.c280 link->sl_alloc_th = THREAD_NULL; in wql_poison()
2070 thread_t thread = THREAD_NULL; in waitq_queue_iterate_locked()
2071 thread_t first_thread = THREAD_NULL; in waitq_queue_iterate_locked()
2074 thread_t t = THREAD_NULL; in waitq_queue_iterate_locked()
2085 if (first_thread == THREAD_NULL) { in waitq_queue_iterate_locked()
2093 if (t != THREAD_NULL) { in waitq_queue_iterate_locked()
2108 if (t == THREAD_NULL) { in waitq_queue_iterate_locked()
2144 thread_t first_thread = THREAD_NULL; in waitq_prioq_iterate_locked()
2145 thread_t thread = THREAD_NULL; in waitq_prioq_iterate_locked()
2179 if (first_thread == THREAD_NULL) { in waitq_prioq_iterate_locked()
[all …]
H A Dextmod_statistics.c94 if ((ctask == kernel_task) || (target == THREAD_NULL)) { in extmod_statistics_incr_thread_set_state()
/xnu-8019.80.24/bsd/net/
H A Dflowadv.c108 static thread_t fadv_thread = THREAD_NULL;
165 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add()
179 if (!fadv_active && fadv_thread != THREAD_NULL) { in flowadv_add_entry()
H A Dnwk_wq.c55 thread_t nwk_wq_thread = THREAD_NULL; in nwk_wq_init()
/xnu-8019.80.24/osfmk/corpses/
H A Dcorpse.c457 if (thread != THREAD_NULL) { in task_generate_corpse()
505 thread_t thread = THREAD_NULL; in task_enqueue_exception_with_corpse()
516 if (thread == THREAD_NULL) { in task_enqueue_exception_with_corpse()
550 thread_t thread = THREAD_NULL; in task_generate_corpse_internal()
551 thread_t thread_next = THREAD_NULL; in task_generate_corpse_internal()
671 if (thread != THREAD_NULL) { in task_generate_corpse_internal()
/xnu-8019.80.24/osfmk/ipc/
H A Dipc_eventlink.c186 ipc_eventlink->el_thread = THREAD_NULL; in ipc_eventlink_initialize()
296 temp_ipc_eventlink->el_thread = THREAD_NULL; in ipc_eventlink_destroy_internal()
335 if (associated_thread[i] != THREAD_NULL && in ipc_eventlink_destroy_internal()
717 thread_t handoff_thread = THREAD_NULL; in ipc_eventlink_signal_wait_internal()
777 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal()
787 self->handoff_thread = THREAD_NULL; in ipc_eventlink_signal_wait_internal()
797 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal()
811 assert(self->handoff_thread == THREAD_NULL); in ipc_eventlink_signal_wait_internal()
/xnu-8019.80.24/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-8019.80.24/bsd/nfs/
H A Dnfs_upcall.c186 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_init()
264 if (nfsrv_uc_queue_tbl[i].ucq_thd != THREAD_NULL) { in nfsrv_uc_stop()
267 nfsrv_uc_queue_tbl[i].ucq_thd = THREAD_NULL; in nfsrv_uc_stop()
/xnu-8019.80.24/osfmk/mach/
H A Dmach_types.h289 #define THREAD_NULL ((thread_t) NULL) macro
319 #define THREAD_NULL ((thread_t) 0) macro
/xnu-8019.80.24/bsd/net/pktsched/
H A Dpktsched_netem.c1054 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in netem_enqueue()
1224 ne->netem_output_thread = THREAD_NULL; in netem_create()
1248 if (ne->netem_output_thread != THREAD_NULL) { in netem_destroy()
1274 ne->netem_output_thread = THREAD_NULL; in netem_destroy()
1276 ASSERT(ne->netem_output_thread == THREAD_NULL); in netem_destroy()

1234