Skip to content

Struct SYN_Mailbox

ClassList > SYN_Mailbox

Typed message queue — fixed-size SPSC ring buffer.

  • #include <syn_mailbox.h>

Public Attributes

Type Name
uint8_t * buf
size_t capacity
volatile size_t head
size_t msg_size
uint32_t overflow
volatile size_t tail

Public Attributes Documentation

variable buf

uint8_t* SYN_Mailbox::buf;

Message storage (flat byte array)


variable capacity

size_t SYN_Mailbox::capacity;

Max messages (slots)


variable head

volatile size_t SYN_Mailbox::head;

Write index (producer)


variable msg_size

size_t SYN_Mailbox::msg_size;

Size of each message in bytes


variable overflow

uint32_t SYN_Mailbox::overflow;

Messages dropped (queue full)


variable tail

volatile size_t SYN_Mailbox::tail;

Read index (consumer)



The documentation for this class was generated from the following file src/syntropic/sched/syn_mailbox.h