(i, j int)
| 44 | } |
| 45 | |
| 46 | func (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 | |
| 52 | func (pq *PriorityQueue) Swap(i, j int) { |
| 53 | pq.lock.Lock() |
nothing calls this directly
no outgoing calls
no test coverage detected