Shared, but synchronisation is not desired for multithreading

tcak via Digitalmars-d digitalmars-d at puremagic.com
Sat Jun 4 09:56:21 PDT 2016


On Saturday, 4 June 2016 at 15:51:22 UTC, Alex Parrill wrote:
> (It also doesn't help that many "thread-safe" functions in D 
> aren't marked as shared where they really ought to be, ex. all 
> the functions in core.sync.mutex)

And you have to be continuously casting the methods of Mutex, 
Thread, Condition, and others wherever you use them in a shared 
class which makes a mess everywhere. Only a person who uses those 
classes in many occasions can understand this situation. Thus, I 
have started this topic.


More information about the Digitalmars-d mailing list