MCPcopy Create free account
hub / github.com/F-Stack/f-stack / taskqueue_terminate

Function taskqueue_terminate

freebsd/kern/subr_taskqueue.c:198–206  ·  view source on GitHub ↗

* Signal a taskqueue thread to terminate. */

Source from the content-addressed store, hash-verified

196 * Signal a taskqueue thread to terminate.
197 */
198static void
199taskqueue_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
208void
209taskqueue_free(struct taskqueue *queue)

Callers 1

taskqueue_freeFunction · 0.85

Calls 2

wakeupFunction · 0.70
TQ_SLEEPFunction · 0.70

Tested by

no test coverage detected