Documentation
¶
Index ¶
Constants ¶
View Source
const ( Lowest Highest )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PriorityQueue ¶
type PriorityQueue struct {
// contains filtered or unexported fields
}
func NewPriorityQueue ¶
func NewPriorityQueue(numQueues int, ascendingPriority, blocking bool) *PriorityQueue
func (*PriorityQueue) Close ¶
func (pq *PriorityQueue) Close()
func (*PriorityQueue) ReadChan ¶
func (pq *PriorityQueue) ReadChan() <-chan interface{}
func (*PriorityQueue) ReadValue ¶
func (pq *PriorityQueue) ReadValue() (interface{}, bool)
func (*PriorityQueue) Write ¶
func (pq *PriorityQueue) Write(priority int) chan<- interface{}
func (*PriorityQueue) WriteValue ¶
func (pq *PriorityQueue) WriteValue(priority int, msg interface{}) bool
Click to show internal directories.
Click to hide internal directories.