hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 990d02e8a91be9c559ded38e813f418133268720
parent c8b2d33669ef7b16b2c4ca32a9848af9431129f8
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 15 May 2021 21:10:27 -0400

io_uring::get_cqe: return null if unavailable

I'm not sure if we actually need to dinstinguish between null and EAGAIN
like liburing does, but I suspect not. In any case, this is sufficient
to implement a proof-of-concept for syscall-free I/O.

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mlinux/io_uring/queue.ha | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/linux/io_uring/queue.ha b/linux/io_uring/queue.ha @@ -110,8 +110,7 @@ export fn get_cqe( if (cq == null && wait == 0 && submit == 0) { if (!needs_flush(ring)) { - // TODO: EAGAIN - abort(); + return null; }; overflow = true; };