opensolaris compat: add taskq_wait emulation

MFC after:	10 days
This commit is contained in:
Andriy Gapon 2013-11-28 19:17:11 +00:00
parent 8a65c0b93a
commit 02727275c5

View File

@ -166,3 +166,9 @@ taskq_dispatch_ent(taskq_t *tq, task_func_t func, void *arg, u_int flags,
TASK_INIT(&task->tqent_task, prio, taskq_run_ent, task);
taskqueue_enqueue(tq->tq_queue, &task->tqent_task);
}
void
taskq_wait(taskq_t *tq)
{
taskqueue_drain_all(tq->tq_queue);
}