Event queue structure for producer/consumer patterns. More...
#include <runtime-sys/sys.h>

Data Fields | |
| sys_event_t * | items |
| Array of event items. | |
| size_t | capacity |
| Maximum queue size. | |
| size_t | head |
| Write position (producer index) | |
| size_t | tail |
| Read position (consumer index) | |
| size_t | count |
| Current number of items. | |
| sys_mutex_t | mutex |
| Protects all queue state. | |
| sys_cond_t | not_empty |
| Signals consumers when items available. | |
| bool | shutdown |
| Flag for graceful shutdown. | |
Event queue structure for producer/consumer patterns.
Thread-safe queue that supports multiple producers and consumers. Producers can always add items (with overflow handling), while consumers can wait for items or peek before acquiring them.