1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core/thread: add thread_get_status()

This commit is contained in:
Kaspar Schleiser 2020-11-25 14:39:22 +01:00
parent 5321bcde89
commit 017e9e9d4d

View File

@ -588,6 +588,16 @@ static inline int thread_has_msg_queue(const volatile struct _thread *thread)
#endif
}
/**
* Get a thread's status
*
* @param thread thread to work on
* @returns status of thread
*/
static inline thread_status_t thread_get_status(const thread_t *thread) {
return thread->status;
}
/**
* Convert a thread state code to a human readable string.
*