zephyr::raw

Function k_work_delayable_is_pending

source
pub unsafe extern "C" fn k_work_delayable_is_pending(
    dwork: *const k_work_delayable,
) -> bool
Expand description

@brief Test whether a delayed work item is currently pending.

Wrapper to determine whether a delayed work item is in a non-idle state.

@note This is a live snapshot of state, which may change before the result can be inspected. Use locks where appropriate.

@funcprops \isr_ok

@param dwork pointer to the delayable work item.

@return true if and only if k_work_delayable_busy_get() returns a non-zero value.