From owner-freebsd-arch Tue May 16 20:21:24 2000 Delivered-To: freebsd-arch@freebsd.org Received: from mass.cdrom.com (adsl-63-202-176-114.dsl.snfc21.pacbell.net [63.202.176.114]) by hub.freebsd.org (Postfix) with ESMTP id CADC537B68A for ; Tue, 16 May 2000 20:21:21 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id UAA04388; Tue, 16 May 2000 20:21:51 -0700 (PDT) (envelope-from msmith@mass.cdrom.com) Message-Id: <200005170321.UAA04388@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Bruce Evans Cc: Chuck Paterson , "Jeroen C. van Gelderen" , Doug Rabson , arch@FreeBSD.ORG Subject: Re: A new api for asynchronous task execution (2) In-reply-to: Your message of "Wed, 17 May 2000 13:01:44 +1000." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 16 May 2000 20:21:51 -0700 From: Mike Smith Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Tue, 16 May 2000, Chuck Paterson wrote: > > > Just an FYI, the TQ_DEF probably came from the flag passed > > into the BSD/OS mutex macros which is M_DEF. These are short > > because the macros often get used when there is sever > > indenting and it is much easer to read when they don't cause > > a line split. Also they are used ALL over the place and after > > looking at the code for a few minutes there is never any doubt > > what they stand for. > > Similarly for many of the other names. "queue" should usually be > abbreviated as "q" or "Q", as in . Perhaps "task" > should be abbreviated as "t" or "T" in more places. The names > should be a little more like those in , e.g., > taskq_add instead of taskqueue_enqueue and taskq_remove instead > of taskqueue_free. This is a bad precedent. It might have been a good idea fifteen or twenty years ago, when six-character symbols were all the rage, but we already have serious namespace issues in the kernel, and this doesn't help at all. Heck, "tq" is already taken (tagged queueing). (This applies to crap going into libc as well; especially new stuff. We should be using a symbol prefix that at least *tries* to keep us out of other peoples' namespaces.) -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message