Home
last modified time | relevance | path

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

1234

/xnu-11417.140.69/bsd/kern/
H A Dsys_ulock.c330 ull->ull_owner = THREAD_NULL; in ull_alloc()
342 assert(ull->ull_owner == THREAD_NULL); in ull_free()
486 if (*owner == THREAD_NULL) { in ulock_resolve_owner()
525 thread_t owner_thread = THREAD_NULL; in sys_ulock_wait2()
526 thread_t old_owner = THREAD_NULL; in sys_ulock_wait2()
684 if (owner_thread == THREAD_NULL) { in sys_ulock_wait2()
713 ull->ull_owner = THREAD_NULL; in sys_ulock_wait2()
715 if (owner_thread != THREAD_NULL) { in sys_ulock_wait2()
769 if (set_owner && owner_thread != THREAD_NULL) { in sys_ulock_wait2()
772 assert(owner_thread == THREAD_NULL); in sys_ulock_wait2()
[all …]
H A Dkern_resource.c1050 if (thread != THREAD_NULL && in do_background_socket()
1057 if (thread != THREAD_NULL) { in do_background_socket()
1069 if (thread == THREAD_NULL) { in do_background_socket()
2000 thread = THREAD_NULL; in iopolicysys_disk()
2041 thread = THREAD_NULL; in iopolicysys_disk()
2089 if (thread != THREAD_NULL) { in iopolicysys_disk()
2096 if (thread != THREAD_NULL) { in iopolicysys_disk()
2225 thread = THREAD_NULL; in iopolicysys_vfs_atime_updates()
2247 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates()
2254 if (thread != THREAD_NULL) { in iopolicysys_vfs_atime_updates()
[all …]
H A Dmach_process.c123 thread_t th_act = THREAD_NULL; in ptrace()
408 if (th_act == THREAD_NULL) { in ptrace()
489 if (th_act == THREAD_NULL) { in ptrace()
/xnu-11417.140.69/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.c286 if (thread == THREAD_NULL) { in thread_terminate()
329 if (thread == THREAD_NULL) { in thread_terminate_from_user()
351 if (thread == THREAD_NULL) { in thread_terminate_pinned()
426 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_suspend()
454 if (thread == THREAD_NULL || get_threadtask(thread) == kernel_task) { in thread_resume()
487 if (thread == THREAD_NULL) { in thread_depress_abort_from_user()
537 if (thread == THREAD_NULL) { in thread_abort()
561 if (thread == THREAD_NULL) { in thread_abort_safely()
604 if (thread == THREAD_NULL) { in thread_info()
633 if (thread == THREAD_NULL) { in thread_get_state_internal()
[all …]
H A Dsched_dualq.c231 return THREAD_NULL; in sched_dualq_choose_thread()
245 return THREAD_NULL; in sched_dualq_choose_thread()
255 if (potential_thread == THREAD_NULL) { in sched_dualq_choose_thread()
256 return THREAD_NULL; in sched_dualq_choose_thread()
265 return THREAD_NULL; in sched_dualq_choose_thread()
271 return THREAD_NULL; in sched_dualq_choose_thread()
283 return THREAD_NULL; in sched_dualq_choose_thread()
488 return THREAD_NULL; in sched_dualq_steal_thread()
522 if (thread != THREAD_NULL && thread->sched_stamp != sched_tick) { in sched_dualq_thread_update_scan()
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 Dthread.c729 assert(thread->handoff_thread == THREAD_NULL); in thread_terminate_self()
753 if (thread == THREAD_NULL) { in thread_ref_release()
1339 assert(vm_pageout_scan_thread == THREAD_NULL); in thread_create_internal()
2057 if (thread == THREAD_NULL) { in thread_info_internal()
2168 quantum_time = SCHED(initial_quantum_size)(THREAD_NULL); in thread_info_internal()
3088 return thread != THREAD_NULL? thread->thread_id: 0; in thread_tid()
3253 if (thread == THREAD_NULL) { in thread_dispatchqaddr()
3282 if (thread == THREAD_NULL) { in thread_wqquantum_addr()
3310 if (thread == THREAD_NULL) { in thread_rettokern_addr()
3358 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;
243 exclaves_boot_thread = THREAD_NULL; in exclaves_boot_exclavecore()
H A Dipc_tt.c1760 if (thread == THREAD_NULL) { in thread_get_special_port()
1802 if (thread == THREAD_NULL) { in thread_get_special_port_from_user()
1906 if (thread == THREAD_NULL) { in thread_set_special_port()
3152 thread_t thread = THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3160 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3165 if (thread == THREAD_NULL) { in convert_port_to_thread_with_flavor_locked()
3166 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3171 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3179 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
3184 return THREAD_NULL; in convert_port_to_thread_with_flavor_locked()
[all …]
H A Dextmod_statistics.c94 if ((ctask == kernel_task) || (target == THREAD_NULL)) { in extmod_statistics_incr_thread_set_state()
H A Dsched_prim.c652 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_rt_quanta()
674 const uint32_t quantum_size = SCHED(initial_quantum_size)(THREAD_NULL); in sched_set_max_unsafe_fixed_quanta()
695 uint32_t quantum = SCHED(initial_quantum_size)(THREAD_NULL); in sched_get_quantum_us()
1953 if (__improbable(thread == THREAD_NULL)) { in thread_wakeup_thread()
2154 assert(thread != THREAD_NULL); in sched_vm_group_maintenance()
2203 assert(thread != THREAD_NULL); in sched_vm_group_maintenance()
2661 thread_t new_thread = THREAD_NULL; in thread_select()
2947 if (new_thread != THREAD_NULL) { in thread_select()
3044 …cessor, MINPRI, current_thread_can_keep_running ? thread : THREAD_NULL, *reason)) != THREAD_NULL) { in thread_select()
3102 if ((new_thread = SCHED(steal_thread)(pset)) != THREAD_NULL) { in thread_select()
[all …]
/xnu-11417.140.69/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-11417.140.69/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-11417.140.69/tests/sched/
H A Dcontextswitch.c142 thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0); in thread()
145 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread()
152 if (thread_switch(THREAD_NULL, SWITCH_OPTION_NONE, 0)) { in thread()
/xnu-11417.140.69/osfmk/corpses/
H A Dcorpse.c466 if (thread != THREAD_NULL) { in task_generate_corpse()
624 thread_t thread = THREAD_NULL; in task_enqueue_exception_with_corpse()
632 if (thread == THREAD_NULL) { in task_enqueue_exception_with_corpse()
669 thread_t thread = THREAD_NULL; in task_generate_corpse_internal()
670 thread_t thread_next = THREAD_NULL; in task_generate_corpse_internal()
811 if (thread != THREAD_NULL) { in task_generate_corpse_internal()
/xnu-11417.140.69/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-11417.140.69/tests/sched/sched_test_harness/shadow_headers/
H A Dmisc_needed_defines.h33 #define THREAD_NULL ((thread_t) 0) macro
H A Dsched_prim.c136 assert(thread != THREAD_NULL); in run_queue_dequeue()
239 return THREAD_NULL; in run_queue_peek()
/xnu-11417.140.69/osfmk/mach/
H A Dmach_types.h301 #define THREAD_NULL ((thread_t) NULL) macro
331 #define THREAD_NULL ((thread_t) 0) macro
/xnu-11417.140.69/bsd/net/pktsched/
H A Dpktsched_netem.c1136 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in nlc_enqueue()
1334 ne->netem_output_thread = THREAD_NULL; in netem_create()
1360 if (ne->netem_output_thread != THREAD_NULL) { in netem_destroy()
1386 ne->netem_output_thread = THREAD_NULL; in netem_destroy()
1388 ASSERT(ne->netem_output_thread == THREAD_NULL); in netem_destroy()
1551 if (__probable(ne->netem_output_thread != THREAD_NULL)) { in netem_set_params()
/xnu-11417.140.69/san/coverage/
H A Dkcov.c213 if (__improbable(th == THREAD_NULL)) { in trace_pc_guard()

1234