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

Function CRON_RemoveTask

src/cron/cron.c:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118static bool CRON_RemoveTask
119(
120 const CRON_TASK *t
121) {
122 ASSERT(t != NULL);
123
124 pthread_mutex_lock(&cron->mutex);
125 void *res = Heap_remove_item(cron->tasks, t);
126 pthread_mutex_unlock(&cron->mutex);
127 return res != NULL;
128}
129
130static bool CRON_RemoveCurrentTask
131(

Callers 1

Cron_AbortTaskFunction · 0.85

Calls 1

Heap_remove_itemFunction · 0.85

Tested by

no test coverage detected