Lines Matching refs:current_thread

411 	thread_t thread = current_thread();  in thread_corpse_continue()
441 thread_t thread = current_thread(); in thread_terminate_self()
596 task_deliver_crash_notification(task, current_thread(), etype, subcode); in thread_terminate_self()
1101 assert(th_remove != current_thread()); in thread_terminate_crashed_threads()
1230 if (__improbable(current_thread() == &init_thread)) { in thread_create_internal()
2160 thread = current_thread(); in thread_get_runtime_self()
2225 if (host_priv == NULL || thread != current_thread()) { in thread_wire_internal()
2266 return current_thread() == vm_pageout_state.vm_pageout_external_iothread; in is_external_pageout_thread()
2272 return current_thread()->options & TH_OPT_VMPRIV ? TRUE : FALSE; in is_vm_privileged()
2280 if (current_thread()->options & TH_OPT_VMPRIV) { in set_vm_privilege()
2287 current_thread()->options |= TH_OPT_VMPRIV; in set_vm_privilege()
2289 current_thread()->options &= ~TH_OPT_VMPRIV; in set_vm_privilege()
2321 thread_t thread = current_thread(); in thread_priority_floor_start()
2350 thread_t thread = current_thread(); in thread_priority_floor_end()
2377 assert(thread == current_thread()); in thread_guard_violation()
2497 thread_t thread = current_thread(); in SENDING_NOTIFICATION__THIS_THREAD_IS_CONSUMING_TOO_MUCH_CPU()
2758 thread_t thread = current_thread(); in thread_get_cpulimit()
2813 thread_t thread = current_thread(); in thread_set_cpulimit()
2995 if (thread == current_thread()) { in thread_shared_rsrc_policy_set()
3025 if (thread == current_thread()) { in thread_shared_rsrc_policy_clear()
3208 thread_t thread = current_thread(); in thread_set_voucher_name()
3326 if (thread != current_thread() && thread->started) { in thread_set_mach_voucher()
3387 thread_t thread = current_thread(); in thread_get_current_voucher_origin_pid()
3411 assert(thread == current_thread()); in thread_get_current_voucher_thread_group()
3452 assert(thread == current_thread()); in thread_supports_cooperative_workqueue()
3504 assert(current_thread() == thread); in thread_arm_workqueue_quantum()
3665 thread_kernel_state_t kstate = thread_get_kernel_state(current_thread()); in thread_set_allocation_name()
3678 return current_thread()->saved.iokit.tls[index]; in thread_iokit_tls_get()
3685 current_thread()->saved.iokit.tls[index] = data; in thread_iokit_tls_set()
3803 return current_thread()->thread_region_page_shift; in thread_self_region_page_shift()
3815 current_thread()->thread_region_page_shift = pgshift; in thread_self_region_page_shift_set()
3992 thread_t thread = current_thread(); in dtrace_thread_bootstrap()