D Mutex reference.

Alexander Panek a.panek at brainsware.org
Fri Jan 19 05:54:16 PST 2007


Saaa wrote:
> Doesn't D have mutexes?
> Or better: What is the advantage of synchronized over the use of mutexes?
> 
> Could you explain this line:
> static this() {
> lock=new Object;
> }
> Does this mean I need to enable the GC?(I mean, not disable it :)

If I understood that correct, a synchronized object actually /is/ a mutex.


More information about the Digitalmars-d-learn mailing list