* Signal a taskqueue thread to terminate. */
| 160 | * Signal a taskqueue thread to terminate. |
| 161 | */ |
| 162 | static void |
| 163 | gtaskqueue_terminate(struct thread **pp, struct gtaskqueue *tq) |
| 164 | { |
| 165 | |
| 166 | while (tq->tq_tcount > 0 || tq->tq_callouts > 0) { |
| 167 | wakeup(tq); |
| 168 | TQ_SLEEP(tq, pp, "gtq_destroy"); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | static void __unused |
| 173 | gtaskqueue_free(struct gtaskqueue *queue) |
no test coverage detected