synchronized { }
BCS
ao at pathlink.com
Thu Jun 26 09:51:09 PDT 2008
Reply to Walter,
> Jason House wrote:
>
>> Walter Bright Wrote:
>>
>>> 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 tried to once but the design quickly outgrew the method. I wouldn't
>> miss it.
>>
>> What inspires you to abandon or replace it?
>>
> The idea that there isn't a legitimate use for it.
>
How about replace it by allowing any global (of any type) to be used. A global
mutex would need to be created in such a cases.
More information about the Digitalmars-d
mailing list