* Signal a taskqueue thread to terminate. */
| 196 | * Signal a taskqueue thread to terminate. |
| 197 | */ |
| 198 | static void |
| 199 | taskqueue_terminate(struct thread **pp, struct taskqueue *tq) |
| 200 | { |
| 201 | |
| 202 | while (tq->tq_tcount > 0 || tq->tq_callouts > 0) { |
| 203 | wakeup(tq); |
| 204 | TQ_SLEEP(tq, pp, "tq_destroy"); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | void |
| 209 | taskqueue_free(struct taskqueue *queue) |
no test coverage detected