MCPcopy Create free account
hub / github.com/F-Stack/f-stack / aeDeleteTimeEvent

Function aeDeleteTimeEvent

app/redis-6.2.6/src/ae.c:234–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234int aeDeleteTimeEvent(aeEventLoop *eventLoop, long long id)
235{
236 aeTimeEvent *te = eventLoop->timeEventHead;
237 while(te) {
238 if (te->id == id) {
239 te->id = AE_DELETED_EVENT_ID;
240 return AE_OK;
241 }
242 te = te->next;
243 }
244 return AE_ERR; /* NO event with the specified ID found */
245}
246
247/* How many microseconds until the first timer should fire.
248 * If there are no timers, -1 is returned.

Callers 1

RM_CreateTimerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected