Lines Matching refs:heapelements
19 static uint32_t heapelements; variable
34 while (pos<heapelements) { in delay_heap_sort_down()
37 if (l>=heapelements) { in delay_heap_sort_down()
41 if (r<heapelements && heap[r].firetime < heap[l].firetime) { in delay_heap_sort_down()
55 uint32_t pos = heapelements-1; in delay_heap_sort_up()
84 if (heapelements>0) { in delay_scheduler()
101 heapelements--; in delay_scheduler()
102 if (heapelements>0) { in delay_scheduler()
103 heap[0] = heap[heapelements]; in delay_scheduler()
122 if (heapelements>=heapsize) { in delay_run()
127 heap[heapelements].fn = fn; in delay_run()
128 heap[heapelements].udata = udata; in delay_run()
129 heap[heapelements].firetime = monotonic_useconds()+useconds; in delay_run()
131 heapelements++; in delay_run()
151 heapelements = 0; in delay_term()
165 heapelements = 0; in delay_init()