Make AtomicPtr Send
This appears to have just been an oversight, and it is annoying to not be able to use an Arc<AtomicPtr>.
This commit is contained in:
parent
e4e93196e1
commit
fd1b0305a3
1 changed files with 2 additions and 1 deletions
|
|
@ -72,7 +72,7 @@
|
|||
|
||||
use self::Ordering::*;
|
||||
|
||||
use marker::Sync;
|
||||
use marker::{Send, Sync};
|
||||
|
||||
use intrinsics;
|
||||
use cell::UnsafeCell;
|
||||
|
|
@ -133,6 +133,7 @@ impl<T> Default for AtomicPtr<T> {
|
|||
}
|
||||
}
|
||||
|
||||
unsafe impl<T> Send for AtomicPtr<T> {}
|
||||
unsafe impl<T> Sync for AtomicPtr<T> {}
|
||||
|
||||
/// Atomic memory orderings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue