quic_pqueue (quic v1.10.0)
View SourceSummary
Functions
Append an entry to its urgency bucket.
Insert at the front of the urgency bucket. Used when a drain pops an entry and must put back an unsent remainder: appending it at the back would order it behind higher-offset entries of the same stream, and a later stream-flow-control block at the head then strands it forever (the peer cannot extend the window across the resulting data hole).
True when every bucket is empty.
An empty queue: eight empty buckets.
Remove and return the highest priority (lowest urgency) entry.
Peek at the highest priority entry without removing it.
Types
-type pqueue() :: {queue:queue(), queue:queue(), queue:queue(), queue:queue(), queue:queue(), queue:queue(), queue:queue(), queue:queue()}.
-type urgency() :: 0..7.
Functions
Append an entry to its urgency bucket.
Insert at the front of the urgency bucket. Used when a drain pops an entry and must put back an unsent remainder: appending it at the back would order it behind higher-offset entries of the same stream, and a later stream-flow-control block at the head then strands it forever (the peer cannot extend the window across the resulting data hole).
True when every bucket is empty.
-spec new() -> pqueue().
An empty queue: eight empty buckets.
Remove and return the highest priority (lowest urgency) entry.
Peek at the highest priority entry without removing it.