ardupilot/libraries/AP_HAL/examples/RingBuffer
Murilo Belluzzo 641671a366 AP_HAL: Add simple stress test for RingBuffer class
It runs a Producer/Consumer thread pair endless reading and writing a
ByteBuffer. Producer writes a number sequence that is twice the
ByteBuffer size so a given position have a different data on each write
pass. Consumer makes sure that this pattern is not broken and aborts the
program if it is.

It is possible to spawn more pairs by informing a number as argument of
the program.
2017-08-02 15:30:35 -07:00
..
stress_RingBuffer.cpp AP_HAL: Add simple stress test for RingBuffer class 2017-08-02 15:30:35 -07:00