Skip to main content

switch_queue_trypush

Function switch_queue_trypush 

Source
pub unsafe extern "C" fn switch_queue_trypush(
    queue: *mut switch_queue_t,
    data: *mut c_void,
) -> switch_status_t
Expand description

push/add a object to the queue, returning immediatly if the queue is full

@param queue the queue @param data the data @returns APR_EINTR the blocking operation was interrupted (try again) @returns APR_EAGAIN the queue is full @returns APR_EOF the queue has been terminated @returns APR_SUCCESS on a successfull push