r/cpp • u/david-alvarez-rosa • Mar 24 '26
Optimizing a Lock-Free Ring Buffer
https://david.alvarezrosa.com/posts/optimizing-a-lock-free-ring-buffer/
104
Upvotes
r/cpp • u/david-alvarez-rosa • Mar 24 '26
View all comments
20
u/rlbond86 Mar 24 '26
The article does specify this is SPSC, but just to be clear, if multiple threads try to push or pop at the same time, it will be a race condition.