<div dir="ltr">Paul Reiners;<br><br><span dir="ltr"></span><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Is it possible to determine when a child shred has finished executing<br>

if you have a reference to the child shred? </blockquote><div><br>I&#39;d say so, let me quote from the &quot;VERSIONS&quot; file from the latest release;<br><br>&nbsp; - (added) int Shred.done()&nbsp; // is the shred done?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int Shred.running()&nbsp; // is the shred running? <br>
</div></div><br>I&#39;m not 100% sure what &quot;running&quot; is supposed to refer to (perhaps I misunderstand it?) but&nbsp; &quot;done&quot; seems to suit your needs;<br><br>================== 8&lt;================<br>fun void foo()<br>
&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; second =&gt; now;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>spork ~ foo() @=&gt; Shred bar;<br><br>&lt;&lt;&lt;bar.done()&gt;&gt;&gt;;<br>&lt;&lt;&lt;bar.running()&gt;&gt;&gt;; // why is this 0? Bug?<br>2::second =&gt; now;<br>&lt;&lt;&lt;bar.done()&gt;&gt;&gt;;<br>
&lt;&lt;&lt;bar.running()&gt;&gt;&gt;;<br>==========8&lt;======================<br><br>Please note that calling these on a Shred object with no shred process attached to it will return more or less random numbers which is probably a bug.<br>
<br>Yours,<br>Kas.<br></div>