async: detect and select the most suitable xev backend, enabling use of io_uring when supported
This commit is contained in:
parent
12713ea8c7
commit
4d809118d2
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user