Skip to main content

Module queue

Module queue 

Source
Expand description

Type-safe FIFO queue for oveRTOS.

Queue<T, N> is a fixed-capacity, thread-safe FIFO that transfers items of type T (which must be Copy) between threads or between ISR and thread contexts. N is the maximum number of items the queue can hold.

Structsยง

Queue
Type-safe FIFO queue with compile-time capacity.
QueueStorage
Caller-owned storage + item buffer for a Queue in zero-heap mode. Declare in a static and pass &STORAGE to Queue::create; in heap mode it is ignored. See crate::MutexStorage for the pattern; this one additionally embeds the [T; N] item buffer the queue needs.