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

Function taskqueue_drain_all

freebsd/kern/subr_taskqueue.c:594–605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592}
593
594void
595taskqueue_drain_all(struct taskqueue *queue)
596{
597
598 if (!queue->tq_spin)
599 WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, __func__);
600
601 TQ_LOCK(queue);
602 (void)taskqueue_drain_tq_queue(queue);
603 (void)taskqueue_drain_tq_active(queue);
604 TQ_UNLOCK(queue);
605}
606
607void
608taskqueue_drain_timeout(struct taskqueue *queue,

Callers 3

taskq_wait_outstandingFunction · 0.85
in6m_release_waitFunction · 0.85
crypto_destroyFunction · 0.85

Calls 2

taskqueue_drain_tq_queueFunction · 0.85

Tested by

no test coverage detected