João Bernardo added the comment:

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.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18078>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to