Brian Anderson f3fef9a649 std: Make atomics immutable. #11583
In Rust, the strongest guarantee that `&mut` provides is that the memory
pointed to is *not aliased*, whereas `&`'s guarantees are much weaker:
that the value can be aliased, and may be mutated under proper precautions
(interior mutability).

Our atomics though use `&mut` for mutation even while creating multiple
aliases, so this changes them to use 'interior mutability', mutating
through immutable references.
2014-03-20 09:44:29 -07:00
..
2014-01-03 14:02:01 -08:00
2014-02-14 22:55:21 -08:00
2014-02-14 22:55:21 -08:00
2014-02-14 22:55:21 -08:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-14 22:55:21 -08:00
2014-02-14 22:55:21 -08:00
2014-02-14 22:55:21 -08:00
2014-02-07 12:49:24 -06:00
2014-01-27 21:15:18 +01:00
2014-02-07 00:38:33 +02:00
2014-02-14 22:55:21 -08:00
2014-02-14 22:55:21 -08:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00
2014-02-14 22:55:21 -08:00
2014-02-07 12:49:24 -06:00
2014-02-07 12:49:24 -06:00