riot_sys::bindgen

Function thread_flags_wait_one

Source
pub unsafe extern "C" fn thread_flags_wait_one(
    mask: thread_flags_t,
) -> thread_flags_t
Expand description

@brief Wait for any flags in mask to become set (blocking), one at a time

This function is like thread_flags_wait_any(), but will only clear and return one flag at a time, least significant set bit first.

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

@returns flag that triggered the return / wait