| 128 | } |
| 129 | |
| 130 | static 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 | |
| 142 | static void CRON_InsertTask |
| 143 | ( |
no test coverage detected