synchronized { }

Michel Fortin michel.fortin at michelf.com
Thu Jun 26 05:15:24 PDT 2008


On 2008-06-25 21:18:41 -0400, Walter Bright <newshound1 at digitalmars.com> said:

> Right now, if you use a synchronized statement with no argument, it 
> will sync on a mutex unique to that statement.
> 
> Does anyone write threading code that depends on this behavior?

I've used it before, thinking it was equivalent to synchronize(this) 
{}, an incorrect assumption obviously. If you get rid of it, I won't 
miss it.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d mailing list