Documentation ¶
Overview ¶
bill 2018.1.8 优先级队列[同级别先进先出]权重值越大越优先
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CircularLinked ¶
type CircularLinked struct {
// contains filtered or unexported fields
}
func (*CircularLinked) Dump ¶
func (q *CircularLinked) Dump()
func (*CircularLinked) Len ¶
func (q *CircularLinked) Len() int
func (*CircularLinked) Pop ¶
func (q *CircularLinked) Pop() interface{}
func (*CircularLinked) Push ¶
func (q *CircularLinked) Push(v interface{})
type PriorityQueue ¶
func NewPriorityQueue ¶
func NewPriorityQueue() *PriorityQueue
func (*PriorityQueue) Dump ¶
func (pq *PriorityQueue) Dump()
func (*PriorityQueue) Expirations ¶
func (pq *PriorityQueue) Expirations(expriCallback func(item *Item))
检测超时任务
func (*PriorityQueue) Len ¶
func (pq *PriorityQueue) Len() int
func (*PriorityQueue) Pop ¶
func (pq *PriorityQueue) Pop() *Item
func (*PriorityQueue) Push ¶
func (pq *PriorityQueue) Push(v *Item)
Click to show internal directories.
Click to hide internal directories.