Hacker News new | ask | show | jobs
by 361994752 2181 days 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-vo...

2 comments

Can 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.
Volatile in c++ has nothing to do with threading.