Poll'able Queue objects.
Dan Maas
dmaas at dcine.com
Sun Mar 11 15:46:00 EST 2001
> As this didn't seem to exist i have coded a selectable Queue object
> based on pipes (which should thus work under unix and win32). I have
> included the code below. If you go to the following URL :
I hate to say it, but this code won't work on Win32 since you can't select()
or WaitForMultipleObjects() on anonymous pipes (thanks, MS!). To get the
expected non-blocking behavior you would have to use threads or a local
socket...
Regards,
Dan
More information about the Python-list
mailing list