Date: Tue, 26 Oct 2004 10:13:16 -0700 From: Bruce M Simpson <bms@spc.org> To: Sam <sah@softcardsystems.com> Cc: freebsd-current@freebsd.org Subject: Re: taskqueue(9) funny Message-ID: <20041026171316.GA697@empiric.icir.org> In-Reply-To: <Pine.LNX.4.60.0410261249330.4856@athena> References: <Pine.LNX.4.60.0410261249330.4856@athena>
next in thread | previous in thread | raw e-mail | index | archive | help
--bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 26, 2004 at 12:57:43PM -0500, Sam wrote: > There is no task_fn type defined by taskqueue.h or _task.h. > >From a documentation perspective this is ever-so-mildly > deceiving. This must mean task_fn_t. How about the attached patch? BMS P.S. Love the way mail user agents still escape lines beginning with 'From' even in 2004 because of good old mbox mail format. --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="taskqueue.9.diff" Index: taskqueue.9 =================================================================== RCS file: /home/ncvs/src/share/man/man9/taskqueue.9,v retrieving revision 1.12 diff -u -p -r1.12 taskqueue.9 --- taskqueue.9 8 Aug 2004 02:37:22 -0000 1.12 +++ taskqueue.9 26 Oct 2004 17:12:56 -0000 @@ -41,7 +41,7 @@ .In sys/queue.h .In sys/taskqueue.h .Bd -literal -typedef void (*task_fn)(void *context, int pending); +typedef void (*task_fn_t)(void *context, int pending); typedef void (*taskqueue_enqueue_fn)(void *context); @@ -49,7 +49,7 @@ struct task { STAILQ_ENTRY(task) ta_link; /* link for queue */ int ta_pending; /* count times queued */ int ta_priority; /* priority of task in queue */ - task_fn ta_func; /* task handler */ + task_fn_t ta_func; /* task handler */ void *ta_context; /* argument for handler */ }; .Ed --bp/iNruPH9dso1Pn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041026171316.GA697>