svn commit: r262071 - stable/9/sys/cddl/compat/opensolaris/kern

Andriy Gapon avg at FreeBSD.org
Mon Feb 17 15:38:27 UTC 2014


Author: avg
Date: Mon Feb 17 15:38:27 2014
New Revision: 262071
URL: http://svnweb.freebsd.org/changeset/base/262071

Log:
  MFC r258715: opensolaris compat: add taskq_wait emulation

Modified:
  stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c
==============================================================================
--- stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c	Mon Feb 17 15:38:10 2014	(r262070)
+++ stable/9/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c	Mon Feb 17 15:38:27 2014	(r262071)
@@ -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-9 mailing list