synchronized - shared but actually useful

Stanislav Blinov stanislav.blinov at gmail.com
Tue Oct 23 12:50:30 UTC 2018


On Tuesday, 23 October 2018 at 08:56:39 UTC, FeepingCreature 
wrote:
> 1. Make synchronized an attribute of fields, classes and methods
> ...
>
> Advantages:
> * simple
> * does something useful
> Disadvantages:
> * inability to generate giant forum debates (fingers crossed)

:) What about structs? Or all the cases where you don't need 
'synchronized'? You can write a lock-free queue with a few 
integers and an array.


More information about the Digitalmars-d mailing list