[dmd-concurrency] synchronized, shared, and regular methods inside the same class
Andrei Alexandrescu
andrei at erdani.com
Wed Jan 6 10:32:49 PST 2010
Michel Fortin wrote:
> Given all the examples I've seen, I'm a little concerned that
> synchronization will only work with class members. What about structs
> and shared globals? Is there going to be a safe way to keep them
> synchronized? Or is that irrelevant?
I think it's fair to impose that if you want lock-based synchronization,
you must use classes. Mutexes protect data, and currently our only means to
A remote second is to instantiate and use your own Mutex objects and
cowboy things around by using casts.
Andrei
More information about the dmd-concurrency
mailing list