async: detect and select the most suitable xev backend, enabling use of io_uring when supported

This commit is contained in:
Tarry Singh 2024-08-14 14:23:57 +00:00
parent 12713ea8c7
commit 4d809118d2

View File

@ -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();