
22 Jul
2006
22 Jul
'06
1:10 p.m.
I'd like to use functions to stop and restart shreds. Is this the right way to do it? It doesn't seem to be working properly - I get errors from some shreds when I thought they'd all stopped. Shred shredA, shredB; fun void sporkAll() { spork ~ funA() @=> shredA; spork ~ funB() @=> shredB; me.yield(); } fun void killAllShreds() { shredA.exit(); shredB.exit(); me.yield(); } Ollie