MCPcopy Create free account
hub / github.com/apple/foundationdb / discardAll

Method discardAll

flow/Net2Packet.cpp:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void UnsentPacketQueue::discardAll() {
168 while (unsent_first) {
169 auto n = unsent_first->nextPacketBuffer();
170 unsent_first->delref();
171 unsent_first = n;
172 }
173 unsent_last = 0;
174}
175
176PacketBuffer* ReliablePacketList::compact(PacketBuffer* into, PacketBuffer* end) {
177 ReliablePacket* r = reliable.next;

Callers 2

Calls 3

nextPacketBufferMethod · 0.80
removeMethod · 0.65
delrefMethod · 0.45

Tested by

no test coverage detected