diff --git a/src/minilib/TimerQueue.zig b/src/minilib/TimerQueue.zig index d283095..68b9d57 100644 --- a/src/minilib/TimerQueue.zig +++ b/src/minilib/TimerQueue.zig @@ -16,6 +16,12 @@ pub const Options = struct { force_foreign_backend: bool = false, }; +comptime { + if (builtin.single_threaded) { + @compileError("TimerQueue requires threads to support all the platforms."); + } +} + pub const Closure = struct { pub const Callback = *const fn (context: *anyopaque, user_data: usize) void; context: *anyopaque,