Lines Matching refs:current_thread

410 	thread_t thread = current_thread();  in thread_corpse_continue()
440 thread_t thread = current_thread(); in thread_terminate_self()
581 task_deliver_crash_notification(task, current_thread(), etype, subcode); in thread_terminate_self()
1083 assert(th_remove != current_thread()); in thread_terminate_crashed_threads()
1212 if (__improbable(current_thread() == &init_thread)) { in thread_create_internal()
2142 thread = current_thread(); in thread_get_runtime_self()
2207 if (host_priv == NULL || thread != current_thread()) { in thread_wire_internal()
2248 return current_thread() == vm_pageout_state.vm_pageout_external_iothread; in is_external_pageout_thread()
2254 return current_thread()->options & TH_OPT_VMPRIV ? TRUE : FALSE; in is_vm_privileged()
2262 if (current_thread()->options & TH_OPT_VMPRIV) { in set_vm_privilege()
2269 current_thread()->options |= TH_OPT_VMPRIV; in set_vm_privilege()
2271 current_thread()->options &= ~TH_OPT_VMPRIV; in set_vm_privilege()
2303 thread_t thread = current_thread(); in thread_priority_floor_start()
2332 thread_t thread = current_thread(); in thread_priority_floor_end()
2359 assert(thread == current_thread()); in thread_guard_violation()
2479 thread_t thread = current_thread(); in SENDING_NOTIFICATION__THIS_THREAD_IS_CONSUMING_TOO_MUCH_CPU()
2740 thread_t thread = current_thread(); in thread_get_cpulimit()
2795 thread_t thread = current_thread(); in thread_set_cpulimit()
2977 if (thread == current_thread()) { in thread_shared_rsrc_policy_set()
3007 if (thread == current_thread()) { in thread_shared_rsrc_policy_clear()
3190 thread_t thread = current_thread(); in thread_set_voucher_name()
3308 if (thread != current_thread() && thread->started) { in thread_set_mach_voucher()
3369 thread_t thread = current_thread(); in thread_get_current_voucher_origin_pid()
3393 assert(thread == current_thread()); in thread_get_current_voucher_thread_group()
3434 assert(thread == current_thread()); in thread_supports_cooperative_workqueue()
3486 assert(current_thread() == thread); in thread_arm_workqueue_quantum()
3647 thread_kernel_state_t kstate = thread_get_kernel_state(current_thread()); in thread_set_allocation_name()
3660 return current_thread()->saved.iokit.tls[index]; in thread_iokit_tls_get()
3667 current_thread()->saved.iokit.tls[index] = data; in thread_iokit_tls_set()
3785 return current_thread()->thread_region_page_shift; in thread_self_region_page_shift()
3797 current_thread()->thread_region_page_shift = pgshift; in thread_self_region_page_shift_set()
3999 thread_t thread = current_thread(); in dtrace_thread_bootstrap()