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

Function CRON_TaskDue

src/cron/cron.c:100–109  ·  view source on GitHub ↗

determines if task is due

Source from the content-addressed store, hash-verified

98
99// determines if task is due
100static bool CRON_TaskDue
101(
102 const CRON_TASK *t
103) {
104 ASSERT(t != NULL);
105
106 struct timespec now;
107 clock_gettime(CLOCK_REALTIME, &now);
108 return cmp_timespec(now, t->due) >= 0;
109}
110
111static CRON_TASK *CRON_Peek() {
112 pthread_mutex_lock(&cron->mutex);

Callers 1

Cron_RunFunction · 0.85

Calls 1

cmp_timespecFunction · 0.85

Tested by

no test coverage detected