about summary refs log tree commit diff
path: root/src/libcore/sync
diff options
context:
space:
mode:
authorTobias Bucher <tobiasbucher5991@gmail.com>2015-09-09 12:12:25 +0100
committerTobias Bucher <tobiasbucher5991@gmail.com>2015-09-15 23:35:02 +0100
commit1b3745fe145a18df44156f24c5c31ca9bf26883d (patch)
tree033229e858444fcb9a965456cfbfc76499cef91b /src/libcore/sync
parentd2e13e822a73e0ea46ae9e21afdd3155fc997f6d (diff)
Add a comment that the `Atomic*` are all implicitly `Send`
Diffstat (limited to 'src/libcore/sync')
-rw-r--r--src/libcore/sync/atomic.rs3
1 files changed, 3 insertions, 0 deletions
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 @@ impl Default for AtomicBool {
     }
 }
 
+// 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 @@ impl Default for AtomicIsize {
     }
 }
 
+// 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 @@ impl Default for AtomicUsize {
     }
 }
 
+// Send is implicitly implemented for AtomicUsize.
 unsafe impl Sync for AtomicUsize {}
 
 /// A raw pointer type which can be safely shared between threads.