Summary: spawn()'ed thread doesn't terminate
--- Comment #0 from to...@yahoo.com 2010-06-13 18:50:11 PDT ---
Using DMD 2.047.
This example hangs after printing '9'. From reading Andrei's book, my
understanding is that the spawned thread should terminate automatically when
its owner thread terminates. But that doesn't happen here.
int i = receiveOnly!int();
Tid tid = spawn(&f);
foreach (int i; 0..10)
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------