How to write correct multi-threaded code?
Andrey Zherikov
andrey.zherikov at gmail.com
Wed Oct 16 13:46:48 UTC 2019
I'm trying to write multi-threaded code that uses mutexes,
condition variables and atomics but I've got confused how to do
this correctly. Everything I found so far include a lot of
casting to/from shared even for the objects that are supposed to
be shared (like mutex and condition variable).
Is there any good explanation or guide with examples of how to
write correct multi-threaded code in D using shared,
synchronized, core.sync.* etc things?
More information about the Digitalmars-d-learn
mailing list