4 ms·
It's possible to implement very simple condition variables. The tricky part is preventing correct but inefficient behaviours like stampeding herds.
by atq2119 6y ago
It's possible to implement very simple condition variables. The tricky part is preventing correct but inefficient behaviours like stampeding herds.
- gpderetta 6y agoWhen implementing posix semantics there are a lot of nasty corner cases, especially with dealing with fairnes, graceful destruction, correct handling of wait generations and probably more that I'm missing. I would never attempt to implement a full condvar.