Low-Lock Singletons In D

Mehrdad wfunction at hotmail.com
Mon May 6 02:10:59 PDT 2013


On Monday, 6 May 2013 at 09:06:55 UTC, Mehrdad wrote:
> lock (this)
> {
> 	_static = new ActualValue<T>();
> }

Oops I forgot the null check inside, don't forget that.


More information about the Digitalmars-d mailing list