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
Show parent comment
6
u/HommeMusical Mar 24 '26
Writing lock-free code that works under all circumstances - or even works provably 100% reliably on one application - is extremely tricky.
What in this code keeps consistency under concurrent access? It's very unclear that anything is doing that.
Why do you think you have solved this problem? You don't say.
It is your fault for knowing that and spamming us anyway.
No, that's not what "knowing something works" means.
I mean, this pair of sentences really does speak for itself.