Struct 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¶
Message storage (flat byte array)
variable capacity¶
Max messages (slots)
variable head¶
Write index (producer)
variable msg_size¶
Size of each message in bytes
variable overflow¶
Messages dropped (queue full)
variable tail¶
Read index (consumer)
The documentation for this class was generated from the following file src/syntropic/sched/syn_mailbox.h