From owner-freebsd-arch Fri May 12 13:17:38 2000 Delivered-To: freebsd-arch@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 9FD2837BFEB for ; Fri, 12 May 2000 13:16:14 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id QAA17205; Fri, 12 May 2000 16:16:01 -0400 (EDT) Date: Fri, 12 May 2000 16:16:01 -0400 (EDT) From: Daniel Eischen Message-Id: <200005122016.QAA17205@pcnet1.pcnet.com> To: arch@FreeBSD.ORG, dfr@nlsystems.com Subject: Re: A new api for asynchronous task execution Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Doug Rabson 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