spinn_common 7.2.2
Support code for SpiNNaker applications.
|
Support functions for fast circular buffer implementation. More...
Functions | |
circular_buffer | circular_buffer_initialize (uint32_t size) |
Create a new FIFO circular buffer of at least the given size. For efficiency, the buffer can be bigger than requested. | |
void | circular_buffer_print_buffer (circular_buffer buffer) |
Print the contents of the buffer. | |
Support functions for fast circular buffer implementation.
The essential feature of the buffer used in this implementation is that it requires no critical-section interlocking — PROVIDED THERE ARE ONLY TWO PROCESSES: a producer/consumer pair. If this is changed, then a more intricate implementation will probably be required, involving the use of enable/disable interrupts.
circular_buffer circular_buffer_initialize | ( | uint32_t | size | ) |
Create a new FIFO circular buffer of at least the given size. For efficiency, the buffer can be bigger than requested.
[in] | size | The minimum number of elements in the buffer to be created |
void circular_buffer_print_buffer | ( | circular_buffer | buffer | ) |
Print the contents of the buffer.
Do not use if the sark IO_BUF
is being used for binary data.
[in] | buffer | The buffer to print |