> If you are doing tasklet switching from C, there is no avoiding the hard 
> switching.

Thanks for this information. I'd be happy with a custom hack like this:

def Wake(self):    # defined in Python (or C)
  print 'Wake'
  ...

void MyCFunction() {
  // This will discard the bottommost C stack, and it will call Wake
as soon as the tasklet is rescheduled.
  PyStackless_ScheduleAndContinueWith(None, 1, Wake)
}

_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless

Reply via email to