pub fn mb<T: MemoryBarrier>(_: T)Expand description
Memory barrier.
A barrier that prevents compiler and CPU from reordering memory accesses across the barrier.
The specific forms of reordering can be specified using the parameter.
mb(Read)provides a read-read barrier.mb(Write)provides a write-write barrier.mb(Full)provides a full barrier.
ยงExamples
mb(Read);
mb(Write);
mb(Full);