MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / CRON_JobCmp

Function CRON_JobCmp

src/cron/cron.c:59–68  ·  view source on GitHub ↗

minimum heap sort function

Source from the content-addressed store, hash-verified

57
58// minimum heap sort function
59static int CRON_JobCmp
60(
61 const void *a,
62 const void *b,
63 void *udata
64) {
65 CRON_TASK *_a = (CRON_TASK*)a;
66 CRON_TASK *_b = (CRON_TASK*)b;
67 return cmp_timespec(_b->due, _a->due);
68}
69
70//------------------------------------------------------------------------------
71// Utility functions

Callers

nothing calls this directly

Calls 1

cmp_timespecFunction · 0.85

Tested by

no test coverage detected