Threadsafe singleton using volatile,synchonized
Dejan Lekic
dejan.lekic at gmail.com
Wed May 30 13:11:44 PDT 2007
>
> CriticalSectionBegin()
> {
> // Your Single thread code goes here
> }
> CriticalSectionEnd()
synchronized {} does exactly that IMHO.
More information about the Digitalmars-d
mailing list