[issue40907] cpython/lib/queue.py: put() does not acquire not_empty before notifying on it

r n report at bugs.python.org
Wed Jun 10 02:03:58 EDT 2020


r n <raghav.newar at gmail.com> added the comment:

Thanks for the response.
However, if you see, every condition object has their own queue of waiters in self._waiters, that get notified during notify(), which are different for not_empty and not_full.
I see a hang very very rarely, like 1/25 times, in my program, which keeps, reading from and writing to a queue from multiple threads.

----------
nosy: +r n2

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40907>
_______________________________________


More information about the Python-bugs-list mailing list