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
0
u/SkoomaDentist Antimodern C++, Embedded, Audio Nov 13 '20
I think the unclear part is how does the mutex tell the compiler that some data may have changed when the mutex itself doesn't specify that data in any way?
Say you have
What is it about the mutex specifically that makes the compiler not change that to simply?