> For this purpose, fetch-and-add would be more efficient. Multiple writer contention is much worse with CAS.
Why, out of interest?
Why, out of interest?
Fetch-and-add is totally wait-free, much better upper bound. It always succeeds on first try.
https://github.com/jberryman/unagi-chan
Interested to check out your work! I'd love to be able to extend my library to support IPC in some way.