std.Io.Threaded: use ResetEventPosix on illumos

Like NetBSD, illumos has no futexes.

ref #25760
This commit is contained in:
Alex Rønne Petersen 2025-11-01 16:18:11 +01:00
parent a8fea09cd5
commit 5db9eaa851
No known key found for this signature in database

View File

@ -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,
};