riot_sys

Function ztimer_remove

Source
pub unsafe extern "C" fn ztimer_remove(
    clock: *mut ztimer_clock_t,
    timer: *mut ztimer_t,
) -> bool
Expand description

@brief Remove a timer from a clock

This will remove @p timer from the timer targets queue for @p clock.

This function does nothing if @p timer is not found in the timer queue of @p clock.

@param[in] clock ztimer clock to operate on @param[in] timer timer entry to remove

@retval true The timer was removed (and thus its callback neither was nor will be called by ztimer). @retval false The timer fired previously or is not set on the @p clock at all.