Function cq_ready [src]

Returns the number of CQEs in the completion queue, i.e. its length. These are CQEs that the application is yet to consume. Matches the implementation of io_uring_cq_ready in liburing.

Prototype

pub fn cq_ready(self: *IoUring) u32

Parameters

self: *IoUring

Source

pub fn cq_ready(self: *IoUring) u32 { return @atomicLoad(u32, self.cq.tail, .acquire) -% self.cq.head.*; }