Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Feb 2014 15:38:27 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r262071 - stable/9/sys/cddl/compat/opensolaris/kern
Message-ID:  <201402171538.s1HFcRZq014413@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
+}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402171538.s1HFcRZq014413>