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 kristjan.jonsson
Recipients arigo, beazley, benjamin.peterson, brian.curtin, dabeaz, flox, jyasskin, kristjan.jonsson, loewis, navytux, ned.deily, paul.moore, pitrou, python-dev, r.david.murray, rhettinger, ronaldoussoren, sbt, scoder, shihao, techtonik, terry.reedy, tim.golden, tim.peters, torsten, vstinner, ysj.ray
Date 2019-09-11.21:57:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568239039.21.0.483755212818.issue38106@roundup.psfhosted.org>
In-reply-to
Content
imho posix made a mistake in allowing signal/broadcast outside the mutex.  Otherwise an implementation could rely on the mutex for internal state manipulation.  I have my own fast condition variable lib implemented using semaphores and it is simple to do if one requires the mutex to be held for the signal event.

Condition variables semantics are otherwise quite brilliant. For example, allowing for spurious wakeups to occur allows, again, for much simpler implementation.
History
Date User Action Args
2019-09-11 21:57:19kristjan.jonssonsetrecipients: + kristjan.jonsson, tim.peters, loewis, arigo, rhettinger, terry.reedy, beazley, paul.moore, shihao, ronaldoussoren, pitrou, scoder, vstinner, techtonik, jyasskin, tim.golden, benjamin.peterson, ned.deily, r.david.murray, brian.curtin, flox, dabeaz, torsten, ysj.ray, python-dev, sbt, navytux
2019-09-11 21:57:19kristjan.jonssonsetmessageid: <1568239039.21.0.483755212818.issue38106@roundup.psfhosted.org>
2019-09-11 21:57:19kristjan.jonssonlinkissue38106 messages
2019-09-11 21:57:19kristjan.jonssoncreate