aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorVincent Rischmann <vincent@rischmann.fr>2022-01-01 01:23:26 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-01-04 02:13:41 -0500
commit6630a5ede5ee2e31386aab59761660952cca2e0e (patch)
treeba1007ac4a5c6a043e0fec978d71ebf23b872df2 /src/Compilation.zig
parent76fd6fc36505a203fba77e2103db12be59514532 (diff)
downloadzig-6630a5ede5ee2e31386aab59761660952cca2e0e.tar.gz
zig-6630a5ede5ee2e31386aab59761660952cca2e0e.zip
io_uring: improve IO_Uring.copy_cqe
copy_cqes() is not guaranteed to return as many CQEs as provided in the `wait_nr` argument, meaning the assert in `copy_cqe` can trigger. Instead, loop until we do get at least one CQE returned. This mimics the behaviour of liburing's _io_uring_get_cqe.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions