Hi Paul: I would have to look at your code to see what is happening. However from my past experiences, race conditions and blocking on the wrong tasklet were indictators of design problems. That said, there is a Queue class in the uthread.py library.
http://code.google.com/p/stacklessexamples/source/browse/trunk/libraries/uthread-ccp/uthread.py Cheers, Andrew --- On Sat, 3/14/09, [email protected] <[email protected]> wrote: > From: [email protected] <[email protected]> > Subject: Stackless Digest, Vol 62, Issue 6 > To: [email protected] > Date: Saturday, March 14, 2009, 4:00 AM > Send Stackless mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.stackless.com/mailman/listinfo/stackless > or, via email, send a message with subject or body > 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more > specific > than "Re: Contents of Stackless digest..." > > > Today's Topics: > > 1. stackless inter-thread queues (Paul Sijben) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 14 Mar 2009 11:49:26 +0100 > From: Paul Sijben <[email protected]> > Subject: [Stackless] stackless inter-thread queues > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1 > > I am banging my head against the wall for far too long now. > > For my project, I really (and urgently) need something that > will give me > Queue behavior that will work in a mixed stackless & > threading > environment. (networking & graphical user interface, a > hell scheduling-wise) > > I have emulated this in my code but am running into > race-conditions. > The problem is that a channel.send() blocks. In my code it > sometimes > blocks on the wrong channel and hence starves the tasklet > that can > actually keep things going. > > So please, does someone have a working stackless Queue that > works > interthread? I am at my whit's end here. > > Paul > > -- > Paul Sijben tel: +31334566488 > Eemvalley Technology fax: +31334557523 > the Netherlands http://eemvalley.com > > > > > ------------------------------ > > _______________________________________________ > Stackless mailing list > [email protected] > http://www.stackless.com/mailman/listinfo/stackless > > End of Stackless Digest, Vol 62, Issue 6 > **************************************** _______________________________________________ Stackless mailing list [email protected] http://www.stackless.com/mailman/listinfo/stackless
