Queue.Queue-like class without the busy-wait
Paul Rubin
http
Fri Mar 25 05:07:15 EST 2005
Antoon Pardon <apardon at forel.vub.ac.be> writes:
> > I've never checked this code but it wouldn't have occurred to me that
> > Queue uses any kind of timeout loop. Can't it work the obvious way
> > with a semaphore?
>
> And how is this semaphore going to be released if the timeout is
> reached?
I meant a semaphore to synchronize the queue when adding or removing
objects. Timeout would be handled with sigalarm or select.
More information about the Python-list
mailing list