ardupilot/libraries/AP_HAL/utility
Murilo Belluzzo b7dd4dad64 AP_HAL: Fix ByteBuffer::reserve() breaking buffer state
When using reserved(), the reserved memory cannot be read before it's
written, therefore we cannot update 'tail' until the caller of
reserved() is done writing.

To solve that, a method called 'commit()' was added so the caller can
inform that is done with the memory usage and is safe to update 'tail'.
The caller also has to inform the length that was actually written.

This solution was developed to work considering the usage context of
this class: 1 reader and 1 writer **only**.
2016-07-08 13:10:16 -03:00
..
tests AP_HAL: fix signed and unsigned comparison warning 2016-05-04 08:58:37 -03:00
BetterStream.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
dsm.cpp AP_HAL: moved dsm implementation into AP_HAL/utility 2015-12-27 16:12:27 +11:00
dsm.h AP_HAL: moved dsm implementation into AP_HAL/utility 2015-12-27 16:12:27 +11:00
ftoa_engine.cpp AP_HAL: ftoa_engine: replace tabs with spaces 2015-12-27 15:58:12 -02:00
ftoa_engine.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
functor.h AP_HAL: functor: use std::remove_reference 2016-02-16 19:49:09 -02:00
getopt_cpp.cpp AP_HAL: allow getopt_cpp on QURT 2015-12-29 19:10:46 +11:00
getopt_cpp.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
OwnPtr.h AP_HAL: utility: Add OwnPtr implementation 2016-02-16 19:49:08 -02:00
print_vprintf.cpp Global: start using cmath instead of math.h 2016-04-05 21:06:19 -07:00
print_vprintf.h AP_HAL: remove unused in_progmem flag to print_vprintf 2015-12-27 15:58:12 -02:00
Print.cpp AP_HAL: standardize inclusion of libaries headers 2015-08-18 17:12:51 +10:00
Print.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
RingBuffer.cpp AP_HAL: Fix ByteBuffer::reserve() breaking buffer state 2016-07-08 13:10:16 -03:00
RingBuffer.h AP_HAL: Fix ByteBuffer::reserve() breaking buffer state 2016-07-08 13:10:16 -03:00
Socket.cpp AP_HAL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Socket.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
sparse-endian.h AP_HAL: sparse-endian: conditionally include byteswap header 2016-03-23 17:50:38 -03:00
Stream.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00
utoa_invert.cpp AP_HAL: support %lld and %llu in internal printf 2015-05-27 11:54:17 +10:00
xtoa_fast.h AP_HAL: replace header guard with pragma once 2016-02-18 14:52:34 -02:00