May 30, 2007 Re: Threadsafe singleton using volatile,synchonized | ||||
|---|---|---|---|---|
| ||||
>
> CriticalSectionBegin()
> {
> // Your Single thread code goes here
> }
> CriticalSectionEnd()
synchronized {} does exactly that IMHO.
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply