Sound Byte Libs 29c5ff3
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
sbl::hal::memory::ArmMemoryBarrier Struct Reference

Memory barrier policy for RingBuffer template. More...

#include <barrier.hpp>

Collaboration diagram for sbl::hal::memory::ArmMemoryBarrier:

Static Public Member Functions

static void full_barrier ()
 

Detailed Description

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.

Member Function Documentation

◆ full_barrier()

static void sbl::hal::memory::ArmMemoryBarrier::full_barrier ( )
inlinestatic
Note
ISR-safe — compiler-only barrier, zero instructions

Definition at line 90 of file barrier.hpp.

References sbl::hal::memory::compiler_barrier().

Here is the call graph for this function:

The documentation for this struct was generated from the following file: