Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/libcore/sync/atomic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -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.
Expand Down