const use_parking_futex = switch (native_os) 17527
17528
17529
17530
17531
17532
17533const use_parking_futex = switch (native_os) {
.windows => true, // RtlWaitOnAddress is a userland implementation anyway
.netbsd => true, // NetBSD has `futex(2)`, but it's historically been quite buggy. TODO: evaluate whether it's okay to use now.
.illumos => true, // Illumos has no futex mechanism
.haiku => true, // Haiku has no futex mechanism
else => false,
}