News for hackers. Stuff that matters.
Re:Betrayed by a bitfield (2012) by jjnoakes on Tuesday July 05, 2016 @07:55AM (#12035760)
Not only is it not enough, using volatile for locking primitives is a bad idea and should not be done. It slows down the program with no benefits.

A correct multi-thrraded program is correct with or without volatile, and so removing volatile can only speed things up and should be done.

There are no comments on this comment yet.