mirror of
https://github.com/ziglang/zig.git
synced 2026-02-16 06:18:32 +00:00
std.Io.Threaded: use ResetEventPosix on illumos
Like NetBSD, illumos has no futexes. ref #25760
This commit is contained in:
parent
a8fea09cd5
commit
5db9eaa851
@ -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,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user