[issue18078] threading.Condition to allow notify on a specific waiter
Raymond Hettinger
report at bugs.python.org
Mon Aug 5 03:48:09 CEST 2013
Raymond Hettinger added the comment:
FWIW, I don't support adding this functionality. I don't see precedents for Condition Variables behaving this way in other languages. Also, I don't think it is worth the added complexity, learning curve, and maintenance burden. Condition variables are used as primitive for other mutexes and I think we ought to keep them somewhat simple.
If someone wants to notify a specific waiter, then they have other options such as using a separate condition variable that shares the same underlying lock (much as the code in the queue module does). That approach is easy to reason about.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18078>
_______________________________________
More information about the Python-bugs-list
mailing list