You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
std.Io.Threaded: implement Mutex and Condition #25760
enhancementSolving this issue will likely involve adding new logic or components to the codebase.os-illumosillumosos-netbsdNetBSDstandard libraryThis issue involves writing Zig code for the standard library.
Unfortunately NetBSD does not have futexes, so Mutex and Condition must be based on pthread_mutex and pthread_condition. This will mean reserving 48 bytes into Io.Mutex for storing state.
if (native_os==.netbsd) @panic("TODO");
Alternately (preferably), they could be based on _lwp_park and _lwp_unpark, which is how the pthreads API is implemented internally on NetBSD, but in this case roughly the same amount of storage for state will be needed in Io.Mutex.
enhancementSolving this issue will likely involve adding new logic or components to the codebase.os-illumosillumosos-netbsdNetBSDstandard libraryThis issue involves writing Zig code for the standard library.
Activity
alexrp commentedon Nov 1, 2025
This also affects illumos: #7152 (comment)
std.Io.Threaded: use ResetEventPosix on illumos