queue container?

Gor Gyolchanyan gor.f.gyolchanyan at gmail.com
Wed Oct 26 13:54:58 PDT 2011


Yes you can. You can mark functions as synchronized as long as they're
shared. and you can mark functions shared regardless whether the
class/struct is shared or not.

On Wed, Oct 26, 2011 at 10:52 PM, Jonathan M Davis <jmdavisProg at gmx.com> wrote:
> On Wednesday, October 26, 2011 11:44 Gor Gyolchanyan wrote:
>> Not necessarily. You don't even need to have the entire function
>> synchronized. You can define your own synchronization blocks, using
>> the object's or classes monitor.
>
> True. If you take that approach, then you can sychronize portions of
> functions, but you can't mark individual functions as synchronized. You
> synchronize the whole class or struct at once, not just individual functions -
> unlike Java or C#.
>
> - Jonathan M Davis
>


More information about the Digitalmars-d mailing list