
26 Jan
2010
26 Jan
'10
12:26 p.m.
Alex Miller wrote:
Your implementation seems to be a fairly standard implementation of double checked locking, and thus is likely vulnerable to the issues outlined in C++ and the Perils of Double-Checked Locking<http://www.aristeia.com/Papers/DDJ_Jul_Aug_2004_revised.pdf>
Making Singleton is a kind of Sisyphus labour. I'm wondering if Monostate would be a better candidate for such project. Best regards, -- Mateusz Loskot, http://mateusz.loskot.net