We've got a prioritized message queue, not a priority queue.
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"gogs.humancabbage.net/sam/priorityq/circ"
|
||||
)
|
||||
|
||||
// Q is a precise, concurrent priority queue.
|
||||
// Q is a precise, concurrent, prioritized message queue.
|
||||
//
|
||||
// Each queue has two internal buffers, high and low. This implementation
|
||||
// guarantees that when there are items in both buffers, consumers receive
|
||||
@@ -18,7 +18,7 @@ type Q[T any] struct {
|
||||
*state[T]
|
||||
}
|
||||
|
||||
// Make a new priority queue.
|
||||
// Make a new queue.
|
||||
func Make[T any](cap int) Q[T] {
|
||||
high := circ.Make[T](cap)
|
||||
low := circ.Make[T](cap)
|
||||
|
Reference in New Issue
Block a user