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:
William Throwe 2015-07-15 08:09:04 -04:00
parent e4e93196e1
commit fd1b0305a3

View file

@ -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