Browse Source

AP_HAL: rename RingBuffer.force() to RingBuffer.push_force()

master
Tom Pittenger 9 years ago
parent
commit
1d528d552f
  1. 6
      libraries/AP_HAL/utility/RingBuffer.h

6
libraries/AP_HAL/utility/RingBuffer.h

@ -130,10 +130,10 @@ public: @@ -130,10 +130,10 @@ public:
/*
force() is semantically equivalent to:
if (!push(t)) { pop(); push(t); }
* push_force() is semantically equivalent to:
* if (!push(t)) { pop(); push(t); }
*/
bool force(const T &object) {
bool push_force(const T &object) {
if (buffer->space() < sizeof(T)) {
buffer->advance(sizeof(T));
}

Loading…
Cancel
Save