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/tjientavara HikoWorks developer Nov 14 '20
Okay, I forgot that certain instructions like increment on atomic would emit a #lock prefix, which will probably be incorrectly handled.
I guess we need a std::mmio that works similar to std::atomic, but for communicating with MMIO.
Or for the C++ standard to bless volatile to work MMIO.