[Stackless] Stackless and Pyrex efficiently

Kristján Valur Jónsson kristjan at ccpgames.com
Tue Jan 26 12:10:39 CET 2010


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: stackless-bounces at stackless.com [mailto:stackless-
> bounces at stackless.com] 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ó <ptspts+stackless at gmail.com>:
> > 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
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless





More information about the Stackless mailing list