Boost logo

Boost :

Subject: Re: [boost] Thread-safe singleton pattern
From: Mateusz Loskot (mateusz_at_[hidden])
Date: 2010-01-26 07:26:24

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<>

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,

Boost list run by bdawes at, gregod at, cpdaniel at, john at