Skip to main content

try_recv

Function try_recv 

Source
pub fn try_recv(endpoint: CapHandle) -> Result<Option<Message>, IpcError>
Expand description

Non-blocking recv: return Ok(None) immediately if the endpoint queue is empty, Ok(Some(msg)) if a message was waiting. (syscall 34 - try_recv) Lets a busy-polling driver drain interrupt events (§12) without giving up its loop.