Lines Matching refs:thread_

70     DEBUG_ASSERT(&thread_ != get_current_thread());  in ~ThreadDispatcher()
77 __UNUSED auto ret = thread_join(&thread_, nullptr, ZX_TIME_INFINITE); in ~ThreadDispatcher()
88 thread_forget(&thread_); in ~ThreadDispatcher()
115 &thread_, thread_name, StartRoutine, this, DEFAULT_PRIORITY, nullptr); in Initialize()
121 DEBUG_ASSERT(lkthread == &thread_); in Initialize()
124 thread_set_user_callback(&thread_, &ThreadUserCallback); in Initialize()
148 memcpy(thread_.name, name, len); in set_name()
149 memset(thread_.name + len, 0, ZX_MAX_NAME_LEN - len); in set_name()
158 strlcpy(out_name, thread_.name, ZX_MAX_NAME_LEN); in get_name()
194 thread_.user_tid = get_koid(); in Start()
195 thread_.user_pid = process_->get_koid(); in Start()
202 thread_resume(&thread_); in Start()
207 thread_suspend(&thread_); in Start()
220 DEBUG_ASSERT(get_current_thread() == &thread_); in Exit()
250 thread_kill(&thread_); in Kill()
289 return thread_suspend(&thread_); in Suspend()
323 thread_resume(&thread_); in Resume()
667 thread_.exception_context = arch_context; in EnterException()
687 thread_.exception_context = nullptr; in ExitExceptionLocked()
750 return thread_stopped_in_exception(&thread_); in InExceptionLocked()
915 &thread_, static_cast<zx_thread_state_general_regs_t*>(buffer)); in ReadState()
921 &thread_, static_cast<zx_thread_state_fp_regs_t*>(buffer)); in ReadState()
927 &thread_, static_cast<zx_thread_state_vector_regs_t*>(buffer)); in ReadState()
933 &thread_, static_cast<zx_thread_state_debug_regs_t*>(buffer)); in ReadState()
939 zx_status_t status = arch_get_single_step(&thread_, &single_step); in ReadState()
971 &thread_, static_cast<const zx_thread_state_general_regs_t*>(buffer)); in WriteState()
977 &thread_, static_cast<const zx_thread_state_fp_regs_t*>(buffer)); in WriteState()
983 &thread_, static_cast<const zx_thread_state_vector_regs_t*>(buffer)); in WriteState()
989 &thread_, static_cast<const zx_thread_state_debug_regs_t*>(buffer)); in WriteState()
998 return arch_set_single_step(&thread_, !!*single_step); in WriteState()
1013 thread_set_priority(&thread_, priority); in SetPriority()