|
Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
Memory barrier policy for RingBuffer template. More...
#include <barrier.hpp>
Static Public Member Functions | |
| static void | full_barrier () |
Memory barrier policy for RingBuffer template.
On single-core Cortex-M, a compiler barrier is sufficient for SPSC ring buffers. It prevents the compiler from reordering stores (data write before index update) without emitting any instructions.
Definition at line 88 of file barrier.hpp.
|
inlinestatic |
Definition at line 90 of file barrier.hpp.
References sbl::hal::memory::compiler_barrier().