Atte:

> I find it highly in-elegant that the sporkee must care about stuff like this

True, but if you start thinking about all the potential edge, you may conclude that the sporkee needs to be involved.  If you want a longer description of why I structured the code this way, it was inspired by my experience in Java:

   http://docs.oracle.com/javase/8/docs/technotes/guides/concurrency/threadPrimitiveDeprecation.html

HTH.

- Rob



On Sun, 15 Mar 2015 at 07:33 Atte <atte@youmail.dk> wrote:
On 03/15/2015 02:24 PM, Robert Poor wrote:
> Within the shred's main processing loop, you compare the value of
> _phoneme_handle against "me", and stop processing if they differ.

Nice idea, thanks!

However, I find it highly in-elegant that the sporkee must care about
stuff like this. I'd really prefer for an outside sporker to be able to
pull the plug, with each process is as generic as possible. Like how the
operating system of my computer handles the switching of all processes,
without the different programs having to listen for a "now it's time to
terminate" signal.

That aside. it sounds like an idea worth pursuing if anything else fails...

Thanks again for the input!
--
Atte

http://atte.dk   http://a773.dk
_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users