[chuck-users] unsporking

Stefan Blixt stefan.blixt at gmail.com
Mon Mar 17 04:35:33 EDT 2008


Doesn't this effectively happen if the method executing in the shred exits?
LIke this:

1 => int running;
fun void daShred() {
 while (running) {
  1::ms => now;
 }
}

unsporkIt() {
 0 => running;
}

spork ~ daShred();

I remember that for Java threads (which admittedly isn't exactly the same as
shreds), this is a recommended practice.

/Stefan

On Mon, Mar 17, 2008 at 9:19 AM, kevin <vacillates at gmail.com> wrote:

> I couldn't find this in a search, but I'm not exactly sure what it's
> called.
>
> I'd like to be able to unspork (despork?) a shred sometime after i've
> sporked it, based on OSC input.
>
> is there a convenient way to do this?
>
> thanks
> -k
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
>


-- 
Release me, insect, or I will destroy the Cosmos!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20080317/25ce19b0/attachment.htm 


More information about the chuck-users mailing list