Drop every queued payload — used when the link goes away.
Only safe while no send callback can be in flight; see the threading note on this class.
Definition at line 178 of file ble_notify_queue.h.
178 {
179 for (
size_t i = 0; i <
kSlots; ++i) {
181 }
185 }
size_t mOffset
Bytes of mSlots[mHead] already accepted. Consumer-only.
static constexpr size_t kSlots
One spare slot keeps "empty" and "full" distinguishable without a shared count, which is what makes t...
fl::vector< u8 > mSlots[kSlots]
volatile size_t mHead
Owned by the consumer; read by the producer to detect "full".
volatile size_t mTail
Owned by the producer; read by the consumer to detect "empty".
References kSlots, mHead, mOffset, mSlots, and mTail.