FastLED 3.10.6
Loading...
Searching...
No Matches

◆ dropFront()

void fl::net::ble::BleNotifyQueue::dropFront ( )
inline

Drop the in-flight payload and move to the next one.

Used when a payload cannot be delivered after repeated attempts, so one undeliverable response does not block the queue forever.

Definition at line 164 of file ble_notify_queue.h.

164 {
165 if (empty()) {
166 return;
167 }
168 const size_t head = mHead;
169 mSlots[head].clear();
170 mOffset = 0;
171 mHead = next(head);
172 }
size_t mOffset
Bytes of mSlots[mHead] already accepted. Consumer-only.
fl::vector< u8 > mSlots[kSlots]
static size_t next(size_t index)
volatile size_t mHead
Owned by the consumer; read by the producer to detect "full".
bool empty() const
True when nothing is waiting to be sent.

References empty(), mHead, mOffset, mSlots, and next().

+ Here is the call graph for this function: