Message190194
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. |
|
Date |
User |
Action |
Args |
2013-05-28 11:10:05 | JBernardo | set | recipients:
+ JBernardo, pitrou, neologix |
2013-05-28 11:10:05 | JBernardo | set | messageid: <1369739405.36.0.376029859325.issue18078@psf.upfronthosting.co.za> |
2013-05-28 11:10:05 | JBernardo | link | issue18078 messages |
2013-05-28 11:10:05 | JBernardo | create | |
|