pub unsafe extern "C" fn thread_flags_wait_all(
    mask: thread_flags_t
) -> thread_flags_t
Expand description

@brief Wait for all flags in mask to become set (blocking)

If all the flags in mask are already set, this function will return immediately, otherwise, it will suspend the thread (as THREAD_STATUS_WAIT_ALL) until all of the flags in mask have been set.

Both ways, it will clear and return (thread_get_active()->flags & mask).

@param[in] mask mask of flags to wait for

@returns mask