}
SlotBuffer::~SlotBuffer() {
+ uint index = tail;
+ while (index != head) {
+ delete array->get(index);
+ index++;
+ if (index == array->length())
+ index = 0;
+ }
delete array;
}
}
void SlotBuffer::incrementTail() {
+ delete array->get(tail);
tail++;
if (((uint32_t)tail) >= array->length())
tail = 0;
int64_t checkNum = (getNewestSeqNum() + 1);
if (checkNum != s->getSequenceNumber()) {
+ uint index = tail;
+ while (index != head) {
+ delete array->get(index);
+ index++;
+ if (index == array->length())
+ index = 0;
+ }
oldestseqn = s->getSequenceNumber();
tail = 0;
head = 1;