Message180282
> Loads and stores are both atomic. But "+=" is made up of two operations, a load followed by a store, and the lock is dropped between the two.
I see. Then this is a documentation bug. The examples in the documentation use such non-thread-safe assignments (combined with the statement "These shared objects will be process and thread safe."). |
|
Date |
User |
Action |
Args |
2013-01-20 08:54:47 | lechten | set | recipients:
+ lechten, sbt |
2013-01-20 08:54:47 | lechten | set | messageid: <1358672087.52.0.543971914898.issue16998@psf.upfronthosting.co.za> |
2013-01-20 08:54:47 | lechten | link | issue16998 messages |
2013-01-20 08:54:46 | lechten | create | |
|