News for hackers. Stuff that matters.
Re:Implementing a lightweight task scheduler in C++ by monocasa on Sunday August 23, 2015 @10:38AM (#10105599)
The way I think of it is that volatile is for making sure the instructions are there and in the right order in the instruction stream. You may need to do other things to get around the processor's side of optimizations like store queues and caches depending on the context.

There are no comments on this comment yet.