Queuing mechanism that is poll/select'able ?
Aahz Maruch
aahz at panix.com
Sat Dec 30 12:06:49 EST 2000
In article <txk4rzo9o4j.fsf at vortex.ukshells.co.uk>,
Chris Ebenezer <chriseb at pobox.com> wrote:
>
>I'm re-writing some python code to use active objects (i.e multiple
>threads). I have been looking at using the Queue class as a means to
>send messages between different objects.
>
>However, the one problem is that since the Queue class isn't based
>around a unix abstraction that is descriptor based, it doesn't support
>select(). Since this is the only mechanism that is relatively
>ubiquitous in unix for the use of polling, this causes problems when
>you try to use Queue's in-conjunction with other 'eventing objects'
>like sockets etc.
What might well be easier than what you're suggesting is to spawn off
threads to handle the external events (sockets); those threads then
interact with the standard Queue object(s).
--
--- Aahz (Copyright 2000 by aahz at pobox.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Ninth Virtual Anniversary: Tomorrow!
More information about the Python-list
mailing list