Comment by kazinator
3 months ago
ISO C has had mutexes since C11 I think.
In any case, you could use the provided primitives to wrap the C11 mutex, or any other mutex.
With some clever #ifdef, you can probably have a single or multithreaded build switch at compile time which makes all the mutex stuff do nothing.
No comments yet
Contribute on Hacker News ↗