Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for timerHeap (0.08 sec)

  1. pkg/test/loadbalancersim/timer/queue.go

    			return
    		}
    	}
    }
    
    func (h timerHeap) Len() int {
    	return len(h)
    }
    
    func (h timerHeap) Less(i, j int) bool {
    	return h[i].deadline.Before(h[j].deadline)
    }
    
    func (h timerHeap) Swap(i, j int) {
    	h[i], h[j] = h[j], h[i]
    	h[i].index = i
    	h[j].index = j
    }
    
    func (h *timerHeap) Push(x any) {
    	e := x.(*entry)
    	*h = append(*h, e)
    	e.index = len(*h) - 1
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top