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

Function CRON_RemoveCurrentTask

src/cron/cron.c:130–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130static bool CRON_RemoveCurrentTask
131(
132 const CRON_TASK *t // task to remove
133) {
134 ASSERT(t != NULL);
135
136 pthread_mutex_lock(&cron->mutex);
137 cron->current_task = Heap_remove_item(cron->tasks, t);
138 pthread_mutex_unlock(&cron->mutex);
139 return cron->current_task != NULL;
140}
141
142static void CRON_InsertTask
143(

Callers 1

Cron_RunFunction · 0.85

Calls 1

Heap_remove_itemFunction · 0.85

Tested by

no test coverage detected