Lines Matching refs:thread_is_idle
256 static bool thread_is_idle(thread_t *t) { in thread_is_idle() function
386 DEBUG_ASSERT(!thread_is_idle(current_thread)); in thread_exit()
502 if (thread_is_idle(newthread)) { in thread_resched()
518 if (thread_is_idle(oldthread)) { in thread_resched()
522 if (thread_is_idle(newthread)) { in thread_resched()
552 target_set_debug_led(0, !thread_is_idle(newthread)); in thread_resched()
618 if (likely(!thread_is_idle(current_thread))) { /* idle thread doesn't go in the run queue */ in thread_yield()
648 if (!thread_is_idle(current_thread)) in thread_preempt()
658 if (likely(!thread_is_idle(current_thread))) { /* idle thread doesn't go in the run queue */ in thread_preempt()
685 DEBUG_ASSERT(!thread_is_idle(current_thread)); in thread_block()
695 DEBUG_ASSERT(!thread_is_idle(t)); in thread_unblock()
753 DEBUG_ASSERT(!thread_is_idle(current_thread)); in thread_sleep()