authorgravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-09-19 16:20:21+02:00
committergravatar for joran@ronomon.comJoran Dirk Greef <joran@ronomon.com> 2020-09-19 16:20:21+02:00
logcb591285d74d9333576b746d41f8c6288701fb96
tree9ac978b281c4a2c069facdf979371dedba30b90b
parent31533eb74300ad934d3fca11ffebd86fe67a31ba

Use linux.IORING_SQ_CQ_OVERFLOW


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/os/linux/io_uring.zig+1-1
...@@ -279,7 +279,7 @@ pub const IO_Uring = struct {...@@ -279,7 +279,7 @@ pub const IO_Uring = struct {
279279
280 // Matches the implementation of cq_ring_needs_flush() in liburing.280 // Matches the implementation of cq_ring_needs_flush() in liburing.
281 fn cq_ring_needs_flush(self: *IO_Uring) bool {281 fn cq_ring_needs_flush(self: *IO_Uring) bool {
282 return (@atomicLoad(u32, self.sq.flags, .Unordered) & IORING_SQ_CQ_OVERFLOW) != 0;282 return (@atomicLoad(u32, self.sq.flags, .Unordered) & linux.IORING_SQ_CQ_OVERFLOW) != 0;
283 }283 }
284284
285 /// For advanced use cases only that implement custom completion queue methods.285 /// For advanced use cases only that implement custom completion queue methods.