[issue18078] threading.Condition to allow notify on a specific waiter

João Bernardo report at bugs.python.org
Tue Jun 4 19:01:54 CEST 2013


João Bernardo added the comment:

> Here, removing a thread
> from a wait queue other than the one from which it was signalled is
> O(waiting threads).

To be fair, You will probably never have more than a few hundred/thousand threads on a process. Usually you'll work under a few dozen threads.

To reduce the complexity on average, you could use a set, but `notify` no longer will be able to follow insertion order.

I was hoping it could be done later...

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18078>
_______________________________________


More information about the Python-bugs-list mailing list