Date: Sat, 14 Jan 2006 01:55:24 +0000 (UTC) From: Scott Long <scottl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/acpica/Osd OsdSchedule.c src/sys/dev/em if_em.c src/sys/kern subr_taskqueue.c src/sys/sys taskqueue.h Message-ID: <200601140155.k0E1tPgc013900@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
scottl 2006-01-14 01:55:24 UTC FreeBSD src repository Modified files: sys/dev/acpica/Osd OsdSchedule.c sys/dev/em if_em.c sys/kern subr_taskqueue.c sys/sys taskqueue.h Log: Add the following to the taskqueue api: taskqueue_start_threads(struct taskqueue **, int count, int pri, const char *name, ...); This allows the creation of 1 or more threads that will service a single taskqueue. Also rework the taskqueue_create() API to remove the API change that was introduced a while back. Creating a taskqueue doesn't rely on the presence of a process structure, and the proc mechanics are much better encapsulated in taskqueue_start_threads(). Also clean up the taskqueue_terminate() and taskqueue_free() functions to safely drain pending tasks and remove all associated threads. The TASKQUEUE_DEFINE and TASKQUEUE_DEFINE_THREAD macros have been changed to use the new API, but drivers compiled against the old definitions will still work. Thus, recompiling drivers is not a strict requirement. Revision Changes Path 1.35 +1 -24 src/sys/dev/acpica/Osd/OsdSchedule.c 1.101 +3 -7 src/sys/dev/em/if_em.c 1.34 +56 -16 src/sys/kern/subr_taskqueue.c 1.16 +11 -13 src/sys/sys/taskqueue.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601140155.k0E1tPgc013900>