Commit 5db9eaa851

Alex Rønne Petersen <alex@alexrp.com>
2025-11-01 16:18:11
std.Io.Threaded: use ResetEventPosix on illumos
Like NetBSD, illumos has no futexes. ref #25760
1 parent a8fea09
Changed files (1)
lib
lib/std/Io/Threaded.zig
@@ -5898,7 +5898,7 @@ pub fn futexWake(ptr: *const std.atomic.Value(u32), max_waiters: u32) void {
 /// It can also block threads until the value is set with cancelation via timed
 /// waits. Statically initializable; four bytes on all targets.
 pub const ResetEvent = switch (native_os) {
-    .netbsd => ResetEventPosix,
+    .illumos, .netbsd => ResetEventPosix,
     else => ResetEventFutex,
 };