I’m having a play around with some multi threading, I notice that std.Thread.Semaphore implements a Semaphore using a Mutex and a Conditional. Would it instead be more performant to call posix sem_wait and sem_post from Zig?
For reference this is to sync read and write to shared memory multiple millions of times per second. Or at least, that’s what I’m aiming for.