MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / uv__run_timers

Function uv__run_timers

third-party/libuv-1.46.0/src/timer.c:163–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161
162
163void uv__run_timers(uv_loop_t* loop) {
164 struct heap_node* heap_node;
165 uv_timer_t* handle;
166
167 for (;;) {
168 heap_node = heap_min(timer_heap(loop));
169 if (heap_node == NULL)
170 break;
171
172 handle = container_of(heap_node, uv_timer_t, heap_node);
173 if (handle->timeout > loop->time)
174 break;
175
176 uv_timer_stop(handle);
177 uv_timer_again(handle);
178 handle->timer_cb(handle);
179 }
180}
181
182
183void uv__timer_close(uv_timer_t* handle) {

Callers 2

uv_runFunction · 0.85
uv_runFunction · 0.85

Calls 3

timer_heapFunction · 0.85
uv_timer_stopFunction · 0.85
uv_timer_againFunction · 0.85

Tested by

no test coverage detected