4 ms·
This is not about race condition. Rather it is something more like why you need volatile keyword. https://stackoverflow.com/questions/72275/when-should-the-vol
by 361994752 6y ago
This is not about race condition. Rather it is something more like why you need volatile keyword.
https://stackoverflow.com/questions/72275/when-should-the-volatile-keyword-be-used-in-c https://stackoverflow.com/questions/72275/when-should-the-vo...
- MauranKilom 6y agoCan you elaborate? volatile and threading in C++ are orthogonal to each other. I don't understand why you consider a C# volatile discussion relevant when talking about C++ race conditions.
- ensiferum 6y agoVolatile in c++ has nothing to do with threading.