Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for siftDown (0.07 sec)

  1. src/runtime/time.go

    			break
    		}
    		heap[i] = heap[p]
    		i = p
    	}
    	if heap[i].timer != tw.timer {
    		heap[i] = tw
    	}
    }
    
    // siftDown puts the timer at position i in the right place
    // in the heap by moving it down toward the bottom of the heap.
    func (ts *timers) siftDown(i int) {
    	heap := ts.heap
    	n := len(heap)
    	if i >= n {
    		badTimer()
    	}
    	if i*timerHeapN+1 >= n {
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 14:36:24 UTC 2024
    - 37.5K bytes
    - Viewed (0)
Back to top