New submission from Raymond Hettinger <raymond.hettin...@gmail.com>:

This code looks correct to me.  For condition variables, the requirement is 
that the underlying lock be held when notify() is called.  The not_full and 
not_empty condition variables share the same underlying lock, so it is 
sufficient that not_empty.notify() is called inside the body of "with 
self.not_full".

----------
nosy: +tim.peters

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40907>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to