zephyr::raw

Function k_queue_cancel_wait

source
pub unsafe extern "C" fn k_queue_cancel_wait(queue: *mut k_queue)
Expand description

@brief Cancel waiting on a queue.

This routine causes first thread pending on @a queue, if any, to return from k_queue_get() call with NULL value (as if timeout expired). If the queue is being waited on by k_poll(), it will return with -EINTR and K_POLL_STATE_CANCELLED state (and per above, subsequent k_queue_get() will return NULL).

@funcprops \isr_ok

@param queue Address of the queue.