News for hackers. Stuff that matters.
Re:Best Performance of a C++ Singleton by platinumrad on Sunday March 08, 2026 @01:14AM (#47294993)
It's a bit contrived, but a global with a nontrivial constructor can spawn a thread that uses another global, and without synchronization the thread can see an uninitialized or partially initialized value.

There are no comments on this comment yet.