Lines Matching refs:thread

56 void z_unpend_thread_no_timeout(struct k_thread *thread);
60 void z_pend_thread(struct k_thread *thread, _wait_q_t *wait_q,
64 void z_unpend_thread(struct k_thread *thread);
66 bool z_thread_prio_set(struct k_thread *thread, int prio);
71 void z_sched_start(struct k_thread *thread);
72 void z_ready_thread(struct k_thread *thread);
76 bool thread_is_sliceable(struct k_thread *thread);
142 static ALWAYS_INLINE _wait_q_t *pended_on_thread(struct k_thread *thread) in pended_on_thread() argument
144 __ASSERT_NO_MSG(thread->base.pended_on); in pended_on_thread()
146 return thread->base.pended_on; in pended_on_thread()
150 static inline void unpend_thread_no_timeout(struct k_thread *thread) in unpend_thread_no_timeout() argument
152 _priq_wait_remove(&pended_on_thread(thread)->waitq, thread); in unpend_thread_no_timeout()
153 z_mark_thread_as_not_pending(thread); in unpend_thread_no_timeout()
154 thread->base.pended_on = NULL; in unpend_thread_no_timeout()
165 struct k_thread *thread = NULL; in z_unpend_first_thread() local
171 thread = _priq_wait_best(&wait_q->waitq); in z_unpend_first_thread()
172 if (unlikely(thread != NULL)) { in z_unpend_first_thread()
173 unpend_thread_no_timeout(thread); in z_unpend_first_thread()
174 z_abort_thread_timeout(thread); in z_unpend_first_thread()
178 return thread; in z_unpend_first_thread()
229 void z_sched_wake_thread(struct k_thread *thread, bool is_timeout);
319 void z_sched_usage_start(struct k_thread *thread);
329 void z_sched_thread_usage(struct k_thread *thread,
332 static inline void z_sched_usage_switch(struct k_thread *thread) in z_sched_usage_switch() argument
334 ARG_UNUSED(thread); in z_sched_usage_switch()
337 z_sched_usage_start(thread); in z_sched_usage_switch()