3 ms·
Yeah, under the kind of typical workload I imagine this goes through in a gamedev environment, I don't expect it to ever hit the contention cases. But it could
by exDM69 6y ago
Yeah, under the kind of typical workload I imagine this goes through in a gamedev environment, I don't expect it to ever hit the contention cases.
But it could as well use mutex/condvar because it is unlikely to be contended.
If there is a bug in the atomics code, it will manifest as sporadic performance. They are not easy to debug.
- DSingularity 6y agoI agree. Absent contention those primitive are manipulated via user-space operations anyway. The condition variable even has some optimistic spinning in the NPTL implementation iirc. So basically, he is reinventing the wheel.