Message264853
Just add on to it..
q=queue.Queue()
with q.not_full:
q.put_nowait(1)
this will hang. So if we acquire the not_full while computing size, all puts will wait. Same is the case for q.empty() and q.not_empty method and condition respectively. |
|
Date |
User |
Action |
Args |
2016-05-04 19:50:25 | Sudharsan R | set | recipients:
+ Sudharsan R, rhettinger |
2016-05-04 19:50:25 | Sudharsan R | set | messageid: <1462391425.57.0.279592729306.issue26958@psf.upfronthosting.co.za> |
2016-05-04 19:50:25 | Sudharsan R | link | issue26958 messages |
2016-05-04 19:50:25 | Sudharsan R | create | |
|