[−][src]Function mmal_sys::mmal_queue_timedwait
pub unsafe extern "C" fn mmal_queue_timedwait(
queue: *mut MMAL_QUEUE_T,
timeout: VCOS_UNSIGNED
) -> *mut MMAL_BUFFER_HEADER_T
Wait for a MMAL_BUFFER_HEADER_T from a queue, up to a given timeout. This is the same as a wait, except that it will abort in case of timeout.
@param queue Pointer to a queue @param timeout Number of milliseconds to wait before returning if the semaphore can't be acquired.
@return pointer to the next MMAL_BUFFER_HEADER_T.