diff --git a/core/include/thread.h b/core/include/thread.h index 22733b654c..16d4e6a36f 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -594,7 +594,8 @@ static inline int thread_has_msg_queue(const volatile struct _thread *thread) * @param thread thread to work on * @returns status of thread */ -static inline thread_status_t thread_get_status(const thread_t *thread) { +static inline thread_status_t thread_get_status(const thread_t *thread) +{ return thread->status; } @@ -604,7 +605,8 @@ static inline thread_status_t thread_get_status(const thread_t *thread) { * @param thread thread to work on * @returns true if thread is active, false otherwise */ -static inline bool thread_is_active(const thread_t *thread) { +static inline bool thread_is_active(const thread_t *thread) +{ return thread->status >= STATUS_ON_RUNQUEUE; }