| 140 | } |
| 141 | |
| 142 | static void CRON_InsertTask |
| 143 | ( |
| 144 | CRON_TASK *t |
| 145 | ) { |
| 146 | ASSERT(t != NULL); |
| 147 | pthread_mutex_lock(&cron->mutex); |
| 148 | Heap_offer(&cron->tasks, t); |
| 149 | pthread_mutex_unlock(&cron->mutex); |
| 150 | |
| 151 | CRON_WakeUp(); |
| 152 | } |
| 153 | |
| 154 | static void CRON_PerformTask |
| 155 | ( |
no test coverage detected