Lines Matching refs:current_thread

432 	thread_t thread = current_thread();  in thread_corpse_continue()
462 thread_t thread = current_thread(); in thread_terminate_self()
625 task_deliver_crash_notification(task, current_thread(), etype, subcode); in thread_terminate_self()
1186 assert(th_remove != current_thread()); in thread_terminate_crashed_threads()
1317 if (__improbable(current_thread() == &init_thread)) { in thread_create_internal()
2312 if (host_priv == NULL || thread != current_thread()) { in thread_wire_internal()
2353 return current_thread() == pgo_iothread_external_state.pgo_iothread; in is_external_pageout_thread()
2359 return current_thread()->options & TH_OPT_VMPRIV ? TRUE : FALSE; in is_vm_privileged()
2367 if (current_thread()->options & TH_OPT_VMPRIV) { in set_vm_privilege()
2374 current_thread()->options |= TH_OPT_VMPRIV; in set_vm_privilege()
2376 current_thread()->options &= ~TH_OPT_VMPRIV; in set_vm_privilege()
2408 thread_t thread = current_thread(); in thread_priority_floor_start()
2437 thread_t thread = current_thread(); in thread_priority_floor_end()
2470 assert(thread == current_thread()); in thread_ast_mach_exception()
2609 thread_t thread = current_thread(); in SENDING_NOTIFICATION__THIS_THREAD_IS_CONSUMING_TOO_MUCH_CPU()
2889 thread_t thread = current_thread(); in thread_cpulimit_remaining()
2913 thread_t thread = current_thread(); in thread_cpulimit_interval_has_expired()
2930 thread_t thread = current_thread(); in thread_cpulimit_restart()
2945 thread_t thread = current_thread(); in thread_get_cpulimit()
2998 thread_t thread = current_thread(); in thread_set_cpulimit()
3196 if (thread == current_thread()) { in thread_shared_rsrc_policy_set()
3226 if (thread == current_thread()) { in thread_shared_rsrc_policy_clear()
3412 thread_t thread = current_thread(); in thread_set_voucher_name()
3530 if (thread != current_thread() && thread->started) { in thread_set_mach_voucher()
3589 return thread_get_voucher_origin_pid(current_thread(), pid); in thread_get_current_voucher_origin_pid()
3640 assert(thread == current_thread()); in thread_get_current_voucher_thread_group()
3662 assert(thread == current_thread()); in thread_get_current_voucher_resource_coalition_id()
3698 assert(thread == current_thread()); in thread_supports_cooperative_workqueue()
3750 assert(current_thread() == thread); in thread_arm_workqueue_quantum()
3973 thread_kernel_state_t kstate = thread_get_kernel_state(current_thread()); in thread_set_allocation_name()
3986 return current_thread()->saved.iokit.tls[index]; in thread_iokit_tls_get()
3993 current_thread()->saved.iokit.tls[index] = data; in thread_iokit_tls_set()
4108 return current_thread()->thread_region_page_shift; in thread_self_region_page_shift()
4120 current_thread()->thread_region_page_shift = pgshift; in thread_self_region_page_shift_set()
4222 thread_t self = current_thread(); in thread_associate_txm_thread_stack()
4235 thread_t self = current_thread(); in thread_disassociate_txm_thread_stack()
4250 return current_thread()->txm_thread_stack; in thread_get_txm_thread_stack()
4424 thread_t thread = current_thread(); in dtrace_thread_bootstrap()