Message190216
> But it might be nice to be able to wait on multiple conditions at
> once, assuming they are associated with the same lock. Maybe we could
> have a static method
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()
Probably this function have more use cases than my original idea, but is it simple to wait on 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. |
|
Date |
User |
Action |
Args |
2013-05-28 14:55:11 | JBernardo | set | recipients:
+ JBernardo, pitrou, neologix, sbt |
2013-05-28 14:55:11 | JBernardo | set | messageid: <1369752911.84.0.812263010217.issue18078@psf.upfronthosting.co.za> |
2013-05-28 14:55:11 | JBernardo | link | issue18078 messages |
2013-05-28 14:55:11 | JBernardo | create | |
|