zephyr::raw

Function k_work_queue_unplug

source
pub unsafe extern "C" fn k_work_queue_unplug(
    queue: *mut k_work_q,
) -> i32
Expand description

@brief Release a work queue to accept new submissions.

This releases the block on new submissions placed when k_work_queue_drain() is invoked with the @p plug option enabled. If this is invoked before the drain completes new items may be submitted as soon as the drain completes.

@funcprops \isr_ok

@param queue pointer to the queue structure.

@retval 0 if successfully unplugged @retval -EALREADY if the work queue was not plugged.