News for hackers. Stuff that matters.
Re:Singleton Pattern in Go by hyperpape on Sunday July 12, 2015 @10:55PM (#9876117)
Someone apparently disliked this comment, but check out

http://www.cs.umd.edu/~pugh/java/memoryModel/DoubleCheckedLo.... Scroll down to "Fixing Double-Checked Locking using Volatile." It's five lines of code without braces, and can be applied without any creativity or reasoning.

There are no comments on this comment yet.