Doesn't this effectively happen if the method executing in the shred exits? LIke this:<br><br>1 => int running;<br>fun void daShred() {<br> while (running) {<br> 1::ms => now;<br> }<br>}<br><br>unsporkIt() {<br>
0 => running;<br>}<br><br>spork ~ daShred();<br><br>I remember that for Java threads (which admittedly isn't exactly the same as shreds), this is a recommended practice.<br><br>/Stefan<br><br><div class="gmail_quote">
On Mon, Mar 17, 2008 at 9:19 AM, kevin <<a href="mailto:vacillates@gmail.com">vacillates@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I couldn't find this in a search, but I'm not exactly sure what it's called.<br><br>I'd like to be able to unspork (despork?) a shred sometime after i've sporked it, based on OSC input.<br><br>is there a convenient way to do this?<br>
<br>thanks<br><font color="#888888">-k<br>
</font><br>_______________________________________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Release me, insect, or I will destroy the Cosmos!