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

Function gtaskqueue_drain_all

freebsd/kern/subr_gtaskqueue.c:435–446  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

433}
434
435void
436gtaskqueue_drain_all(struct gtaskqueue *queue)
437{
438
439 if (!queue->tq_spin)
440 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, __func__);
441
442 TQ_LOCK(queue);
443 gtaskqueue_drain_tq_queue(queue);
444 gtaskqueue_drain_tq_active(queue);
445 TQ_UNLOCK(queue);
446}
447
448static int
449_gtaskqueue_start_threads(struct gtaskqueue **tqp, int count, int pri,

Callers

nothing calls this directly

Calls 2

Tested by

no test coverage detected