Lines Matching refs:current_thread
413 thread_t thread = current_thread(); in thread_corpse_continue()
443 thread_t thread = current_thread(); in thread_terminate_self()
584 task_deliver_crash_notification(task, current_thread(), etype, subcode); in thread_terminate_self()
1058 assert(th_remove != current_thread()); in thread_terminate_crashed_threads()
1188 if (__improbable(current_thread() == &init_thread)) { in thread_create_internal()
2146 thread = current_thread(); in thread_get_runtime_self()
2211 if (host_priv == NULL || thread != current_thread()) { in thread_wire_internal()
2253 return current_thread()->options & TH_OPT_VMPRIV ? TRUE : FALSE; in is_vm_privileged()
2261 if (current_thread()->options & TH_OPT_VMPRIV) { in set_vm_privilege()
2268 current_thread()->options |= TH_OPT_VMPRIV; in set_vm_privilege()
2270 current_thread()->options &= ~TH_OPT_VMPRIV; in set_vm_privilege()
2302 thread_t thread = current_thread(); in thread_priority_floor_start()
2331 thread_t thread = current_thread(); in thread_priority_floor_end()
2358 assert(thread == current_thread()); in thread_guard_violation()
2478 thread_t thread = current_thread(); in SENDING_NOTIFICATION__THIS_THREAD_IS_CONSUMING_TOO_MUCH_CPU()
2739 thread_t thread = current_thread(); in thread_get_cpulimit()
2794 thread_t thread = current_thread(); in thread_set_cpulimit()
2976 if (thread == current_thread()) { in thread_shared_rsrc_policy_set()
3006 if (thread == current_thread()) { in thread_shared_rsrc_policy_clear()
3189 thread_t thread = current_thread(); in thread_set_voucher_name()
3307 if (thread != current_thread() && thread->started) { in thread_set_mach_voucher()
3368 thread_t thread = current_thread(); in thread_get_current_voucher_origin_pid()
3392 assert(thread == current_thread()); in thread_get_current_voucher_thread_group()
3433 assert(thread == current_thread()); in thread_supports_cooperative_workqueue()
3485 assert(current_thread() == thread); in thread_arm_workqueue_quantum()
3627 thread_kernel_state_t kstate = thread_get_kernel_state(current_thread()); in thread_set_allocation_name()
3640 return current_thread()->saved.iokit.tls[index]; in thread_iokit_tls_get()
3647 current_thread()->saved.iokit.tls[index] = data; in thread_iokit_tls_set()
3765 return current_thread()->thread_region_page_shift; in thread_self_region_page_shift()
3777 current_thread()->thread_region_page_shift = pgshift; in thread_self_region_page_shift_set()
3979 thread_t thread = current_thread(); in dtrace_thread_bootstrap()