pub struct MemoryBarriers;
Expand description
Cross-platform memory barrier operations.
Implementations§
Source§impl MemoryBarriers
impl MemoryBarriers
Sourcepub fn barrier(barrier_type: BarrierType)
pub fn barrier(barrier_type: BarrierType)
Execute a memory barrier of the specified type.
Sourcepub fn full_barrier()
pub fn full_barrier()
Full memory barrier - prevents reordering of any memory operations.
Sourcepub fn acquire_barrier()
pub fn acquire_barrier()
Acquire barrier - prevents loads from being reordered before this point.
Sourcepub fn release_barrier()
pub fn release_barrier()
Release barrier - prevents stores from being reordered after this point.
Sourcepub fn load_barrier()
pub fn load_barrier()
Load barrier - orders load operations only.
Sourcepub fn store_barrier()
pub fn store_barrier()
Store barrier - orders store operations only.
Auto Trait Implementations§
impl Freeze for MemoryBarriers
impl RefUnwindSafe for MemoryBarriers
impl Send for MemoryBarriers
impl Sync for MemoryBarriers
impl Unpin for MemoryBarriers
impl UnwindSafe for MemoryBarriers
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more