Hacker News new | ask | show | jobs
Volatile: C Keyword Myths Dispelled (safercode.com)
3 points by shantanugoel 6312 days ago
Volatile is one of the most misunderstood component in C history. Let’s separate out the myths and the facts first and then we will discuss the how’s and why’s of it.
1 comments

And additionally, cases when volatile is really necessary around setjmp()/longjmp() are pretty rare.
True..I try to avoid volatiles as much as I can. And as someone else pointed out on the blog in the commens, many implementations even get the volatiles wrong giving rise to a lot of bugs, so even if you were utmost careful about it, it can still cause issues.