MCPcopy Create free account
hub / github.com/antirez/disque / aeSearchNearestTimer

Function aeSearchNearestTimer

src/ae.c:246–259  ·  view source on GitHub ↗

Search the first timer to fire. * This operation is useful to know how many time the select can be * put in sleep without to delay any event. * If there are no timers NULL is returned. * * Note that's O(N) since time events are unsorted. * Possible optimizations (not needed by Disque so far, but...): * 1) Insert the event in order, so that the nearest is just the head. * Much better but

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

aeProcessEventsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected