From f57ba4b477ea816ea36e6975a8d8ac2fc5cf186f Mon Sep 17 00:00:00 2001 From: Rylee Lyman Date: Thu, 13 Jun 2024 10:04:04 -0400 Subject: [PATCH] fix: add ThreadPool for key events on macOS --- examples/xev.zig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/xev.zig b/examples/xev.zig index 097377a..1890f9b 100644 --- a/examples/xev.zig +++ b/examples/xev.zig @@ -60,7 +60,10 @@ pub fn main() !void { var vx = try vaxis.init(alloc, .{}); defer vx.deinit(alloc, tty.anyWriter()); - var loop = try xev.Loop.init(.{}); + var pool = xev.ThreadPool.init(.{}); + var loop = try xev.Loop.init(.{ + .thread_pool = &pool, + }); defer loop.deinit(); var app: App = .{