[Stackless] Access to local variables of a task from tasklet

Richard Tew richard.m.tew at gmail.com
Sat Jun 20 00:00:59 CEST 2009


On Fri, Jun 19, 2009 at 5:46 PM, Najem Karim<najemkarim at yahoo.com> wrote:
> I know the advantage of channels but I have a different scenario
> to deal with. I have to run only one tasklet at a time i.e
> I do the scheduling by myself. The first tasklet myTasklet1
> is the main one and it must be executed step by step (this is why run(1))
> and when it returns, I check some conditions to see
> if I have to run the second tasklet, when yes I remove myTasklet1 from the list and create and start the second tasklet myTasklet2 until its done.
> The problem is that myTasklet2 needs information about the status of myTasklet1 (i.e. some local variables). I never intend to use channels, by the way since it does not fit in my concept.

You don't want to use the scheduler and you don't want to use
channels.  Why are you using Stackless? :-)

Cheers,
Richard.




More information about the Stackless mailing list