[issue18078] threading.Condition to allow notify on a specific waiter
João Bernardo
report at bugs.python.org
Tue Jun 4 13:01:26 CEST 2013
João Bernardo added the comment:
> I'm not convinced it's really useful.
It doesn't seem a lot useful until you *really* need it. I've got 2 highly parallel programs that took advantage of this pattern.
> the wait is O(C) (appending to C wait queues) and wakeup
> is O(CT) (C removal from a T-length deque).
That's another thing that I wanted to address, but I didn't want to change the data structure in this patch.
The complexity for `notify` and `notify_all` is the same as before.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18078>
_______________________________________
More information about the Python-bugs-list
mailing list