Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2000 16:16:01 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        arch@FreeBSD.ORG, dfr@nlsystems.com
Subject:   Re: A new api for asynchronous task execution
Message-ID:  <200005122016.QAA17205@pcnet1.pcnet.com>

next in thread | raw e-mail | index | archive | help
Doug Rabson <dfr@nlsystems.com> wrote:
>      To execute all the tasks on a queue, call taskqueue_run().  When a task
>      is executed, first it is removed from the queue, the value of pending is
>      recorded and the field is zeroed.  The function func from the task struc-
>      ture is called with the value arg from the structure as its first argu-
>      ment and the value of pending as its second argument.

Minor nit.  If you ever want to add more than one argument to func,
then it would be better to have pending as the first argument to
func rather than the last.

-- 
Dan Eischen


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




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