svn commit: r262072 - stable/8/sys/cddl/compat/opensolaris/kern
Andriy Gapon
avg at FreeBSD.org
Mon Feb 17 15:41:02 UTC 2014
Author: avg
Date: Mon Feb 17 15:41:01 2014
New Revision: 262072
URL: http://svnweb.freebsd.org/changeset/base/262072
Log:
MFC r258715: opensolaris compat: add taskq_wait emulation
Modified:
stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/cddl/ (props changed)
Modified: stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
==============================================================================
--- stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Mon Feb 17 15:38:27 2014 (r262071)
+++ stable/8/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Mon Feb 17 15:41:01 2014 (r262072)
@@ -166,3 +166,9 @@ taskq_dispatch_ent(taskq_t *tq, task_fun
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);
+}
More information about the svn-src-stable
mailing list