MCPcopy Create free account
hub / github.com/chrislusf/glow / Less

Method Less

util/priority_queue.go:46–50  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

44}
45
46func (pq *PriorityQueue) Less(i, j int) bool {
47 pq.lock.RLock()
48 defer pq.lock.RUnlock()
49 return pq.lessFunc(pq.items[i].value, pq.items[j].value)
50}
51
52func (pq *PriorityQueue) Swap(i, j int) {
53 pq.lock.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected