zephyr::raw

Function k_work_user_is_pending

source
pub unsafe extern "C" fn k_work_user_is_pending(
    work: *mut k_work_user,
) -> bool
Expand description

@brief Check if a userspace work item is pending.

This routine indicates if user work item @a work is pending in a workqueue’s queue.

@note Checking if the work is pending gives no guarantee that the work will still be pending when this information is used. It is up to the caller to make sure that this information is used in a safe manner.

@funcprops \isr_ok

@param work Address of work item.

@return true if work item is pending, or false if it is not pending.