Lines Matching refs:current_thread
194 if (thread != current_thread() && result == KERN_SUCCESS) { in thread_terminate_internal()
214 if (task == kernel_task && thread != current_thread()) { in thread_terminate()
354 if (thread != current_thread() && result == KERN_SUCCESS) { in thread_suspend()
552 if (thread != current_thread()) { in thread_get_state_internal()
649 if (thread != current_thread()) { in thread_set_state_internal()
741 from_thread = current_thread(); in thread_convert_thread_state()
743 to_thread = current_thread(); in thread_convert_thread_state()
792 if (thread != current_thread()) { in thread_state_initialize()
823 thread_t self = current_thread(); in thread_dup()
984 if (thread != current_thread()) { in thread_set_tsd_base()
1043 if (thread == current_thread()) { in thread_set_apc_ast_locked()
1072 thread_t thread = current_thread(); in thread_suspended()
1170 if (thread == current_thread()) { in act_set_state()
1184 if (thread == current_thread()) { in act_set_state_from_user()
1206 if (thread == current_thread()) { in act_get_state()
1220 if (thread == current_thread()) { in act_get_state_to_user()
1234 if (thread == current_thread()) { in act_set_ast()
1268 if (thread == current_thread()) { in act_set_ast_async()
1278 thread_t thread = current_thread(); in act_set_debug_assert()
1327 if (thread == current_thread()) { in act_set_ast_reset_pcs()
1379 if (thread != current_thread()) { in act_set_kperf()