Date: Mon, 17 Feb 2014 15:38:10 +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-10@freebsd.org Subject: svn commit: r262070 - stable/10/sys/cddl/compat/opensolaris/kern Message-ID: <201402171538.s1HFcAaJ014349@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Mon Feb 17 15:38:10 2014 New Revision: 262070 URL: http://svnweb.freebsd.org/changeset/base/262070 Log: MFC r258715: opensolaris compat: add taskq_wait emulation Modified: stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c ============================================================================== --- stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Mon Feb 17 15:35:36 2014 (r262069) +++ stable/10/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Mon Feb 17 15:38:10 2014 (r262070) @@ -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.s1HFcAaJ014349>