Testing some singleton implementations

Dejan Lekic dejan.lekic at gmail.com
Fri Jan 31 04:10:21 PST 2014


On Friday, 31 January 2014 at 11:45:56 UTC, Andrej Mitrovic wrote:
> On 1/31/14, Dejan Lekic <dejan.lekic at gmail.com> wrote:
>> SingletonLazy.
>
> SingletonLazy isn't thread-safe. :)

I made it thread-safe, and guess what - I ended up with 
SyncSingleton-like solution! So SyncSingleton is a clean winner 
if you want to make it lazy.


More information about the Digitalmars-d mailing list