Message142015
counter.next() is a C routine and it is atomic from Python's point of view — if I understand right.
The test shows that original threading.py leads to a (rare) race here, while with counter object there is no race condition. |
|
Date |
User |
Action |
Args |
2011-08-13 07:01:37 | Peter.Saveliev | set | recipients:
+ Peter.Saveliev, amaury.forgeotdarc, pitrou |
2011-08-13 07:01:37 | Peter.Saveliev | set | messageid: <1313218897.13.0.11139577833.issue11866@psf.upfronthosting.co.za> |
2011-08-13 07:01:36 | Peter.Saveliev | link | issue11866 messages |
2011-08-13 07:01:36 | Peter.Saveliev | create | |
|