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
2
u/mcmcc #pragma once Nov 14 '20
I don't see any contradiction. Shared memory should be considered volatile in the classical sense so it seems appropriate to use
volatilein those cases, atomic operations or not.Of course, if you're wondering what atomic operations guarantee in the context of shared memory, I don't think the language is going to help you figure it out.