6 Commits

Author SHA1 Message Date
Andrew Tridgell
760b3ab2e7 ringbuffer: converted to item_size units
this fixes a number of indexing bugs
2013-09-12 00:53:14 +02:00
px4dev
cefc7ac00e Rework the ringbuffer class so that it's not templated, and refactor its clients so they aren't dancing around the linker anymore. 2013-09-12 00:53:08 +02:00
Andrew Tridgell
3329e3c38c ringbuffer: added resize() and print_info() methods
this simplifies the drivers
2013-09-12 00:51:34 +02:00
px4dev
1828b57c58 ringbuffer: added force() and use lockless methods
this adds force() which can be used for drivers wanting consumers to
get the latest data when the buffer overflows
2013-09-12 00:51:24 +02:00
px4dev
a3ab88872c Add some more useful methods to the ringbuffer class. 2013-08-03 19:02:54 -07:00
px4dev
234ad24081 Simple ring-buffer template class, because re-implementing the wheel in every driver is silly. 2013-08-03 18:23:48 -07:00