Author JBernardo
Recipients JBernardo, neologix, pitrou
Date 2013-05-28.11:10:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1369739405.36.0.376029859325.issue18078@psf.upfronthosting.co.za>
In-reply-to
Content
I usually have hundreds of threads waiting on a single Condition object and I wake them with .notify_all()

Sometimes, I want a specific thread to wake from this condition and finish their job apart from the others.

The problem is that I have 2 "conditions" to wait for. I can't just add another Condition object and ask for it to wait for the first (unless there is some sort of `select` mechanism).

BTW, I find .notify(N) not much useful, because the docs say it may wake more threads on a different implementation and also I can't never know whom am I waking.
History
Date User Action Args
2013-05-28 11:10:05JBernardosetrecipients: + JBernardo, pitrou, neologix
2013-05-28 11:10:05JBernardosetmessageid: <1369739405.36.0.376029859325.issue18078@psf.upfronthosting.co.za>
2013-05-28 11:10:05JBernardolinkissue18078 messages
2013-05-28 11:10:05JBernardocreate