Message142015
| Author |
Peter.Saveliev |
| Recipients |
Peter.Saveliev, amaury.forgeotdarc, pitrou |
| Date |
2011年08月13日.07:01:36 |
| SpamBayes Score |
0.015231038 |
| Marked as misclassified |
No |
| Message-id |
<1313218897.13.0.11139577833.issue11866@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|