➜

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.12:36:52
SpamBayes Score 3.9891893e-05
Marked as misclassified 否
Message-id <1300711012.93.0.404983837082.issue11618@psf.upfronthosting.co.za>
In-reply-to
内容
I'm just providing this as a fast alternative to the Semaphore, which as far as I know, will cause a kernel call every time.

Complicated is relative.  In terms of the condition variable api, I wouldn't say that it is.  But given the fact that we have to emulate condition variables on older windows, then yes, it is complex.

If we are rolling our own instead of using Semaphores (as has been suggested for performance reasons) then using a Condition variable is IMHO safer than a custom solution because the correctness of that approach is so easily provable.
历史
日期 用户 动作 参数
2011-03-21 12:36:53kristjan.jonsson修改recipients: + kristjan.jonsson, loewis, pitrou, tim.golden, brian.curtin, sbt
2011-03-21 12:36:52kristjan.jonsson修改messageid: <1300711012.93.0.404983837082.issue11618@psf.upfronthosting.co.za>
2011-03-21 12:36:52kristjan.jonsson链接issue11618 messages
2011-03-21 12:36:52kristjan.jonsson创建