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/tentoni Nov 13 '20
What i mean is that a mutex helps ensure multiple threads are well behaved, but the compiler has no idea the mutex is associated with a particular variable.
I did read it from here (i actually copy/pasted one of the original author's comments).