Condition.wait(0.5) doesn't respect it's timeout

Aahz aahz at pythoncraft.com
Sat Apr 18 09:05:47 EDT 2009


In article <1eb44e98-3f32-42b3-92f8-1e635428cb6a at q9g2000yqc.googlegroups.com>,
 <stephane.bisinger at gmail.com> wrote:
>
>I have a problem with Condition.wait(), it doesn't return after the
>given timeout. The thing is that if I try to create a simple program,
>it works as expected, but in the actual code, the timeout is not
>respected (albeit the notify()s work as expected).

Whether or not there's a bug, you likely will simplify your code if you
switch to using a Queue().
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur."  --Red Adair



More information about the Python-list mailing list