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-03-20 01:30:27 -04:00
2014-03-20 01:30:27 -04:00
2014-03-20 04:25:32 -04:00
2014-03-20 01:30:27 -04:00
2014-03-20 01:30:27 -04:00
2014-03-20 04:25:32 -04:00
2014-03-20 09:44:29 -07:00
2014-03-14 11:13:36 +08:00
2014-03-20 04:25:32 -04:00
2014-03-20 01:30:27 -04:00
2014-03-20 10:16:56 +01:00
2014-03-15 21:04:56 -07:00
2014-03-20 01:30:27 -04:00
2014-03-20 10:16:55 +01:00
2014-03-20 01:30:27 -04:00
2014-03-20 04:25:32 -04:00
2014-03-18 16:29:57 -07:00
2014-03-20 01:30:27 -04:00
2014-03-20 01:30:27 -04:00
2014-03-20 10:16:55 +01:00
2014-03-20 01:30:27 -04:00
2014-03-20 10:16:55 +01:00
2014-03-20 01:30:27 -04:00
2014-03-20 01:30:27 -04:00
2014-03-20 04:25:32 -04:00
2014-03-20 10:17:28 +01:00
2014-03-20 01:30:27 -04:00
2014-03-20 05:44:25 -04:00