Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

cq_advance

Public Function
std.os.linux.IoUring.cq_advance
pub fn cq_advance(self: *IoUring, count: u32) void

For advanced use cases only that implement custom completion queue methods. Matches the implementation of cq_advance() in liburing.

Params

File

os/linux/IoUring.zig:335
335
336
337
338
339
340
pub fn cq_advance(self: *IoUring, count: u32) void {
    if (count > 0) {
        // Ensure the kernel only sees the new head value after the CQEs have been read.
        @atomicStore(u32, self.cq.head, self.cq.head.* +% count, .release);
    }
}