➜

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.

作者 kristjan.jonsson
收信人 brian.curtin, kristjan.jonsson, loewis, pitrou, sbt, tim.golden
日期 2011-03-21.15:51:36
SpamBayes Score 0.008195289
Marked as misclassified 否
Message-id <1300722697.23.0.499824948319.issue11618@psf.upfronthosting.co.za>
In-reply-to
内容
Btw, the locktimeout.patch appears to have a race condition.  LeaveNonRecursiveMutex may SetEvent when there is no thread waiting (because a timeout just occurred, but the thread on which it happened is still somewhere around line #62 ).  This will cause the next WaitForSingleObject() to succeed, when it shouldn't.

It is this race between the timeout occurring, and the ability of us being able to register that in the lock's bookkeeping, that is the source of all the race problems with the timeout.  This is what prompted me to submit the condition variable version.
历史
日期 用户 动作 参数
2011-03-21 15:51:37kristjan.jonsson修改recipients: + kristjan.jonsson, loewis, pitrou, tim.golden, brian.curtin, sbt
2011-03-21 15:51:37kristjan.jonsson修改messageid: <1300722697.23.0.499824948319.issue11618@psf.upfronthosting.co.za>
2011-03-21 15:51:36kristjan.jonsson链接issue11618 messages
2011-03-21 15:51:36kristjan.jonsson创建