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

Function gtaskqueue_terminate

freebsd/kern/subr_gtaskqueue.c:162–170  ·  view source on GitHub ↗

* Signal a taskqueue thread to terminate. */

Source from the content-addressed store, hash-verified

160 * Signal a taskqueue thread to terminate.
161 */
162static void
163gtaskqueue_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
172static void __unused
173gtaskqueue_free(struct gtaskqueue *queue)

Callers 1

gtaskqueue_freeFunction · 0.85

Calls 2

wakeupFunction · 0.70
TQ_SLEEPFunction · 0.70

Tested by

no test coverage detected