From 4d809118d2abb5a1aab788f6c155a5f2dfa351fb Mon Sep 17 00:00:00 2001 From: Tarry Singh Date: Wed, 14 Aug 2024 14:23:57 +0000 Subject: [PATCH] async: detect and select the most suitable xev backend, enabling use of io_uring when supported --- async/async.zig | 1 + 1 file changed, 1 insertion(+) diff --git a/async/async.zig b/async/async.zig index 588b9e3..43336f3 100644 --- a/async/async.zig +++ b/async/async.zig @@ -177,6 +177,7 @@ pub const AsyncThread = struct { } pub fn main(allocator: std.mem.Allocator, comptime mainFunc: fn () anyerror!void) !void { + try xev.detect(); var thread_pool = XevThreadPool.init(.{}); defer { thread_pool.shutdown();