<div dir="ltr">Atte:<br><br>&gt; I find it highly in-elegant that the sporkee must care about <span style="line-height:1.5;font-size:13.1999998092651px">stuff like this</span><div><br></div><div>True, but if you start thinking about all the potential edge, you may conclude that the sporkee needs to be involved.  <span style="line-height:1.5;font-size:13.1999998092651px">If you want a longer description of why I structured the code this way, it was inspired by my experience in Java:</span><div><div><br></div><div>   <a href="http://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html">http://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html</a></div><div><br></div><div>HTH.</div><div><br></div><div>- Rob</div><div><br></div><div><br></div></div></div></div><br><div class="gmail_quote">On Sun, 15 Mar 2015 at 07:33 Atte &lt;<a href="mailto:atte@youmail.dk">atte@youmail.dk</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 03/15/2015 02:24 PM, Robert Poor wrote:<br>
&gt; Within the shred&#39;s main processing loop, you compare the value of<br>
&gt; _phoneme_handle against &quot;me&quot;, and stop processing if they differ.<br>
<br>
Nice idea, thanks!<br>
<br>
However, I find it highly in-elegant that the sporkee must care about<br>
stuff like this. I&#39;d really prefer for an outside sporker to be able to<br>
pull the plug, with each process is as generic as possible. Like how the<br>
operating system of my computer handles the switching of all processes,<br>
without the different programs having to listen for a &quot;now it&#39;s time to<br>
terminate&quot; signal.<br>
<br>
That aside. it sounds like an idea worth pursuing if anything else fails...<br>
<br>
Thanks again for the input!<br>
--<br>
Atte<br>
<br>
<a href="http://atte.dk" target="_blank">http://atte.dk</a>   <a href="http://a773.dk" target="_blank">http://a773.dk</a><br>
______________________________<u></u>_________________<br>
chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu" target="_blank">chuck-users@lists.cs.<u></u>princeton.edu</a><br>
<a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.<u></u>edu/mailman/listinfo/chuck-<u></u>users</a><br>
</blockquote></div>