Documentation ¶
Overview ¶
Package drrqueue implements a deficit round-robin buffer queue.
Efficient Fair Queueing Using Deficit Round-Robin M. Shreedhar and George Varghese IEEE/ACM Transactions on Networking, Vol. 4, No. 3, June 1996
The queue supports N-writers and 1-reader queue. By "buffer," we mean []byte blocks.
Writers have a priority that takes precedence over the deficit. Writers with greater priority are served first. Deficits are not even updated for lower priorities when higher priority Writers are being served.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type T ¶
type T struct {
// contains filtered or unexported fields
}
T defines the type of round-robin buffer queues. The queue has multiple input Writer queues that are served according to the deficit round-robin policy.
func (*T) Get ¶
Get returns the next element from a queue. Get blocks until a buffer is available or the queue is closed.
Click to show internal directories.
Click to hide internal directories.