[Stackless] Crash with .run in another Thread (was: Explicit yield/break to Preemptive Stackless Loop)

Jeff Senn senn at maya.com
Fri Nov 3 17:27:53 CET 2006


While playing with Brian's example I discovered an
example that crashes on OS-X/Stackless-2.5...

I haven't looked carefully yet at the reason...

------
from threading import Thread
import stackless

def remove_task(x): x.remove()

def task():
   stackless.tasklet(remove_task)(stackless.getcurrent())
   stackless.schedule()

class myThread(Thread):
   def run(self):
     stackless.tasklet(task)()
     stackless.run(10000)

myThread().start()




_______________________________________________
Stackless mailing list
Stackless at stackless.com
http://www.stackless.com/mailman/listinfo/stackless



More information about the Stackless mailing list