[dmd-concurrency] draft 3

Benjamin Shropshire benjamin at precisionsoftware.us
Mon Jan 11 21:13:43 PST 2010


I'm not sure where your going with the asyncSort example. It's a good 
illustration for what it's showing, but what will the function /do/ 
withe the sorted data? Unless you can come up with a nice clean and 
elegant way to get it back to the main thread, I'd chose a different 
task (find-and-print for example) that the reader won't expect to return 
something. OTOH if you do have a nice clean and elegant conclusion, rock on!

[OT} (I'm not to up to date on the latest stuff) is there a way to say 
that the public interface on a class is thread safe and D doesn't need 
to do anything special? For that matter, how much of such a contract 
(given an object reference, there is nothing that can be done via the 
public interface that can cause threading bugs.) can you enforce vs. how 
much would that require just trusting the programmer?


More information about the dmd-concurrency mailing list