| ... | @@ -540,18 +540,20 @@ test { | ... | @@ -540,18 +540,20 @@ test { |
| 540 | | 540 | |
| 541 | const Io = @This(); | 541 | const Io = @This(); |
| 542 | | 542 | |
| | 543 | pub const Threaded = @import("Io/Threaded.zig"); |
| 543 | pub const Evented = switch (builtin.os.tag) { | 544 | pub const Evented = switch (builtin.os.tag) { |
| 544 | .linux => switch (builtin.cpu.arch) { | 545 | .linux => switch (builtin.cpu.arch) { |
| 545 | .x86_64, .aarch64 => @import("Io/IoUring.zig"), | 546 | .x86_64, .aarch64 => IoUring, |
| 546 | else => void, // context-switching code not implemented yet | 547 | else => void, // context-switching code not implemented yet |
| 547 | }, | 548 | }, |
| 548 | .dragonfly, .freebsd, .netbsd, .openbsd, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => switch (builtin.cpu.arch) { | 549 | .dragonfly, .freebsd, .netbsd, .openbsd, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos => switch (builtin.cpu.arch) { |
| 549 | .x86_64, .aarch64 => @import("Io/Kqueue.zig"), | 550 | .x86_64, .aarch64 => Kqueue, |
| 550 | else => void, // context-switching code not implemented yet | 551 | else => void, // context-switching code not implemented yet |
| 551 | }, | 552 | }, |
| 552 | else => void, | 553 | else => void, |
| 553 | }; | 554 | }; |
| 554 | pub const Threaded = @import("Io/Threaded.zig"); | 555 | pub const Kqueue = @import("Io/Kqueue.zig"); |
| | 556 | pub const IoUring = @import("Io/IoUring.zig"); |
| 555 | pub const net = @import("Io/net.zig"); | 557 | pub const net = @import("Io/net.zig"); |
| 556 | | 558 | |
| 557 | userdata: ?*anyopaque, | 559 | userdata: ?*anyopaque, |