Go to the documentation of this file.
54 #ifndef THREAD_FLAGS_H
55 #define THREAD_FLAGS_H
95 #define THREAD_FLAG_MSG_WAITING (1u << 15)
101 #define THREAD_FLAG_TIMEOUT (1u << 14)
void thread_flags_set(thread_t *thread, thread_flags_t mask)
Set thread flags, possibly waking it up.
Scheduler API definition.
thread_flags_t thread_flags_wait_any(thread_flags_t mask)
Wait for any flag in mask to become set (blocking)
thread_flags_t thread_flags_wait_one(thread_flags_t mask)
Wait for any flags in mask to become set (blocking), one at a time.
int thread_flags_wake(thread_t *thread)
Possibly Wake up thread waiting for flags.
thread_t holds thread's context data.
uint16_t thread_flags_t
Type definition of thread_flags_t.
thread_flags_t thread_flags_clear(thread_flags_t mask)
Clear current thread's flags.
thread_flags_t thread_flags_wait_all(thread_flags_t mask)
Wait for all flags in mask to become set (blocking)
Types used by the kernel.