This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients rhettinger, tim.peters
Date 2020-06-10.00:50:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1591750254.86.0.293598479847.issue40907@roundup.psfhosted.org>
In-reply-to
Content
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".
History
Date User Action Args
2020-06-10 00:50:54rhettingersetrecipients: + rhettinger, tim.peters
2020-06-10 00:50:54rhettingersetmessageid: <1591750254.86.0.293598479847.issue40907@roundup.psfhosted.org>
2020-06-10 00:50:54rhettingerlinkissue40907 messages
2020-06-10 00:50:54rhettingercreate