From 1b3745fe145a18df44156f24c5c31ca9bf26883d Mon Sep 17 00:00:00 2001 From: Tobias Bucher Date: Wed, 9 Sep 2015 12:12:25 +0100 Subject: [PATCH] Add a comment that the `Atomic*` are all implicitly `Send` --- src/libcore/sync/atomic.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcore/sync/atomic.rs b/src/libcore/sync/atomic.rs index 53952cdc908..0f72dcc1281 100644 --- a/src/libcore/sync/atomic.rs +++ b/src/libcore/sync/atomic.rs @@ -92,6 +92,7 @@ fn default() -> Self { } } +// Send is implicitly implemented for AtomicBool. unsafe impl Sync for AtomicBool {} /// A signed integer type which can be safely shared between threads. @@ -106,6 +107,7 @@ fn default() -> Self { } } +// Send is implicitly implemented for AtomicIsize. unsafe impl Sync for AtomicIsize {} /// An unsigned integer type which can be safely shared between threads. @@ -120,6 +122,7 @@ fn default() -> Self { } } +// Send is implicitly implemented for AtomicUsize. unsafe impl Sync for AtomicUsize {} /// A raw pointer type which can be safely shared between threads. -- 2.44.0