Message371147
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". |
|
Date |
User |
Action |
Args |
2020-06-10 00:50:54 | rhettinger | set | recipients:
+ rhettinger, tim.peters |
2020-06-10 00:50:54 | rhettinger | set | messageid: <1591750254.86.0.293598479847.issue40907@roundup.psfhosted.org> |
2020-06-10 00:50:54 | rhettinger | link | issue40907 messages |
2020-06-10 00:50:54 | rhettinger | create | |
|