[−][src]Trait locklessness::primitives::atomic_ext::AtomicExt
Associated Types
Loading content...Required methods
fn load_impl(&self, ordering: Ordering) -> Self::Value
fn compare_exchange_weak_impl(
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>
Provided methods
fn try_update<E, F: FnMut(Self::Value) -> Result<Self::Value, E>>(
&self,
f: F
) -> Result<(Self::Value, Self::Value), E>
&self,
f: F
) -> Result<(Self::Value, Self::Value), E>
fn try_update_indirect<'a, A: AtomicExt + 'a, E, F: FnMut(Self::Value) -> Result<&'a A, E>, G: FnMut(Self::Value, A::Value) -> Result<A::Value, E>>(
&self,
deref: F,
update: G
) -> Result<(Self::Value, A::Value, A::Value), E>
&self,
deref: F,
update: G
) -> Result<(Self::Value, A::Value, A::Value), E>
Implementations on Foreign Types
impl AtomicExt for AtomicUsize
[src]
type Value = usize
fn load_impl(&self, ordering: Ordering) -> Self::Value
[src]
fn compare_exchange_weak_impl(
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>
[src]
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>
impl AtomicExt for AtomicIsize
[src]
type Value = isize
fn load_impl(&self, ordering: Ordering) -> Self::Value
[src]
fn compare_exchange_weak_impl(
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>
[src]
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>
impl<T> AtomicExt for AtomicPtr<T>
[src]
type Value = *mut T
fn load_impl(&self, ordering: Ordering) -> Self::Value
[src]
fn compare_exchange_weak_impl(
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>
[src]
&self,
current: Self::Value,
new: Self::Value,
success: Ordering,
failure: Ordering
) -> Result<Self::Value, Self::Value>