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

Richard Oudkerk report at bugs.python.org
Tue May 28 17:37:15 CEST 2013


Richard Oudkerk added the comment:

> This could solve the waiting problem for the "thread", but also may 
> keep the other Condition objs waiting -- and that may not be problem 
> because I'm already using .notify_all()

I don't understand what you mean.

> Probably this function have more use cases than my original idea, but 
> is it simple to wait on several locks?

It would be for waiting for several conditions associated with the same lock, not for waiting for several locks.

> It could be in the form:
>
> Condition.wait_for_any(cond_to_pred: dict|list, timeout=None) -> condition
>
> For cases when there's no need for a predicate function.

There is always a need for a predicate function.

----------

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


More information about the Python-bugs-list mailing list