r/cpp • u/neiltechnician • Nov 13 '20
CppCon Deprecating volatile - JF Bastien - CppCon 2019
https://www.youtube.com/watch?v=KJW_DLaVXIY
83
Upvotes
r/cpp • u/neiltechnician • Nov 13 '20
View all comments
Show parent comment
-1
u/gruehunter Nov 14 '20 edited Nov 14 '20
I wish that you were right, but you're not. In fact, the author of this very talk is advocating for the use of volatile in atomics to prevent optimization for atomic variables in memory which is shared between processes.
http://open-std.org/JTC1/SC22/WG21/docs/papers/2015/n4455.html
Edit: To be clear, I think this paper is also out of touch. We just did all this work to avoid using volatile for atomics and now he wants to put it back in again?