Look at the API. >From the api, there is the PyTasklet_Schedule(1), IIRC (but use the source!)
I've always used channels when doing stuff like this. Done PyChannel_Receive() to sleep and woken up ussing PyChannel_Send(). Your approach is something I've been wanting to try. K > -----Original Message----- > From: [email protected] [mailto:stackless- > [email protected]] On Behalf Of Richard Tew > Sent: 25. janúar 2010 23:42 > To: The Stackless Python Mailing List > Subject: Re: [Stackless] Stackless and Pyrex efficiently > > 2010/1/26 Péter Szabó <[email protected]>: > > I'm planning to reimplement some of my Stackless I/O buffering + > > read(2) + write(2) code in Pyrex. Is it possible to call > > stackless.schedule_remove() from a Pyrex method (or a C extension > > function)? Is it recommended? How should I make it work most > > efficiently? Is there a recommended alternative? > > Questions like this IMO are best approached by trying it, and then > coming to the list with the problems you have. Otherwise, you may be > waiting around for a while. > > Cheers, > Richard. > > _______________________________________________ > Stackless mailing list > [email protected] > http://www.stackless.com/mailman/listinfo/stackless _______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless
