Author kristjan.jonsson
Recipients georg.brandl, kristjan.jonsson
Date 2010-10-31.04:46:45
SpamBayes Score 5.64048e-08
Marked as misclassified No
Message-id <>
The attached patch adds a wait_for method to condition objects.
It can simplify code that uses condition variables since it relieves the user from writing a condition loop.  In addition it simplifies timeout logic which otherwise has to correctly deal with non-successful wakeups.

We also modify the barrier to use it, giving more robust timeout behaviour.

(btw, the use of time.time() in threading is unfortunate, since it has low resolution and is affected by a user adjusting the clock. On Windows one would want time.clock(), but that function measures CPU time on unix.  Do we need a proper time.wallclock() function available on all platforms?)
Date User Action Args
2010-10-31 04:46:49kristjan.jonssonsetrecipients: + kristjan.jonsson, georg.brandl
2010-10-31 04:46:49kristjan.jonssonsetmessageid: <>
2010-10-31 04:46:47kristjan.jonssonlinkissue10260 messages
2010-10-31 04:46:47kristjan.jonssoncreate