Testing some singleton implementations

Stanislav Blinov stanislav.blinov at gmail.com
Sun Feb 9 10:51:46 PST 2014


On Sunday, 9 February 2014 at 18:06:46 UTC, Martin Nowak wrote:
> On 02/09/2014 01:20 PM, luka8088 wrote:
>> class FunctionPointerSingleton {
>>
>>   private static __gshared typeof(this) instance_;
>>
>>   // tls
>>   @property static typeof(this) function () get;
> You don't even need to make this TLS, right?

I don't follow. get should be TLS, as a replacement for 
SyncSingleton's _instantiated TLS bool.


More information about the Digitalmars-d mailing list