no return value for threading.Condition.wait(timeout)?
Piet van Oostrum
piet at cs.uu.nl
Fri Jul 17 04:37:27 EDT 2009
>>>>> Gabriel Rossetti <gabriel.rossetti at arimaz.com> (GR) wrote:
>GR> I have a 1-1 relation, I have a thread reading msgs from a network socket
>GR> and a method waiting for an answer to arrive (see my thread
>GR> "Threading.Condition problem"). I would like to be able to have a timeout
>GR> as to not block forever, so the idea is to check if I returned because of a
>GR> timeout or not.
So that case is easy I think. After the wait just check if the answer
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
More information about the Python-list