Date: Thu, 28 Nov 2013 19:17:11 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r258715 - head/sys/cddl/compat/opensolaris/kern Message-ID: <201311281917.rASJHB1K067077@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: avg Date: Thu Nov 28 19:17:11 2013 New Revision: 258715 URL: http://svnweb.freebsd.org/changeset/base/258715 Log: opensolaris compat: add taskq_wait emulation MFC after: 10 days Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Modified: head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c ============================================================================== --- head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Thu Nov 28 19:13:05 2013 (r258714) +++ head/sys/cddl/compat/opensolaris/kern/opensolaris_taskq.c Thu Nov 28 19:17:11 2013 (r258715) @@ -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?201311281917.rASJHB1K067077>