We've got a prioritized message queue, not a priority queue.

This commit is contained in:
2023-03-01 13:39:19 -08:00
parent c4e92faaf7
commit 0759aaa2cd
2 changed files with 8 additions and 8 deletions

View File

@@ -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)