mirror of
https://github.com/ziglang/zig.git
synced 2025-12-16 19:23:08 +00:00
Use linux.IORING_SQ_CQ_OVERFLOW
This commit is contained in:
parent
31533eb743
commit
cb591285d7
@ -279,7 +279,7 @@ pub const IO_Uring = struct {
|
|||||||
|
|
||||||
// Matches the implementation of cq_ring_needs_flush() in liburing.
|
// Matches the implementation of cq_ring_needs_flush() in liburing.
|
||||||
fn cq_ring_needs_flush(self: *IO_Uring) bool {
|
fn cq_ring_needs_flush(self: *IO_Uring) bool {
|
||||||
return (@atomicLoad(u32, self.sq.flags, .Unordered) & IORING_SQ_CQ_OVERFLOW) != 0;
|
return (@atomicLoad(u32, self.sq.flags, .Unordered) & linux.IORING_SQ_CQ_OVERFLOW) != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// For advanced use cases only that implement custom completion queue methods.
|
/// For advanced use cases only that implement custom completion queue methods.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user