This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author loewis
Recipients
Date 2007-04-13.20:38:21
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
I agree with hashstat that this is a bug. The application specified a time-out as a duration, not as a point in time. A duration is independent of what the clock says: 10s are 10s, even if the clock gets adjusted.

The proper fix would be that locks themselves get a time-out, so that Condition.wait could pass the timeout on to waiter.acquire. For thread_nt.h, the timeout could get passed to WaitForSingleObject; for thread_pthread, it could get passed to sem_timedwait (if available). Not sure about the other threading libraries.

In any case, *this* issue needs to stay closed. If anybody can provide an alternative solution, please submit a new issue.
History
Date User Action Args
2007-08-23 15:55:31adminlinkissue1607149 messages
2007-08-23 15:55:31admincreate