[−][src]Function core::arch::aarch64::__dmb
pub unsafe fn __dmb<A>(arg: A) where
A: Dmb,
This is supported on AArch64 only.
Generates a DMB (data memory barrier) instruction or equivalent CP15 instruction.
DMB ensures the observed ordering of memory accesses. Memory accesses of the specified type issued before the DMB are guaranteed to be observed (in the specified scope) before memory accesses issued after the DMB.
For example, DMB should be used between storing data, and updating a flag variable that makes that data available to another core.
The __dmb() intrinsic also acts as a compiler memory barrier of the appropriate type.