| 116 | } |
| 117 | |
| 118 | static 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 | |
| 130 | static bool CRON_RemoveCurrentTask |
| 131 | ( |
no test coverage detected