Author kristjan.jonsson
Recipients brian.curtin, kristjan.jonsson, loewis, pitrou, sbt, tim.golden
Date 2011-03-21.12:36:52
SpamBayes Score 3.98919e-05
Marked as misclassified No
Message-id <1300711012.93.0.404983837082.issue11618@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-03-21 12:36:53kristjan.jonssonsetrecipients: + kristjan.jonsson, loewis, pitrou, tim.golden, brian.curtin, sbt
2011-03-21 12:36:52kristjan.jonssonsetmessageid: <1300711012.93.0.404983837082.issue11618@psf.upfronthosting.co.za>
2011-03-21 12:36:52kristjan.jonssonlinkissue11618 messages
2011-03-21 12:36:52kristjan.jonssoncreate