]> git.lizzy.rs Git - rust.git/commitdiff
Add a comment that the `Atomic*` are all implicitly `Send`
authorTobias Bucher <tobiasbucher5991@gmail.com>
Wed, 9 Sep 2015 11:12:25 +0000 (12:12 +0100)
committerTobias Bucher <tobiasbucher5991@gmail.com>
Tue, 15 Sep 2015 22:35:02 +0000 (23:35 +0100)
src/libcore/sync/atomic.rs

index 53952cdc9080b525a1f9514994d42848a22908d6..0f72dcc1281a4581737c44cfeeeb369583d32665 100644 (file)
@@ -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.