mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
c518593e97
Apparently the thread parking APIs on Windows and NetBSD aren't as good as I thought---or, at least, the way they're *used* makes them not as good. It's perfectly possible to use these APIs in a way where you don't trigger spurious wakeups, but standard primitives (SRWLOCK on Windows, pthread bits on NetBSD) are perfectly happy to leave pending unparks sitting around, meaning in practice you have to assume spurious unparks are possible. This brings me great sadness... but we soldier on!