From owner-freebsd-arch Wed Sep 4 9:27:14 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D3C837B400; Wed, 4 Sep 2002 09:27:12 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id D678A43E72; Wed, 4 Sep 2002 09:27:11 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id A17A1AE147; Wed, 4 Sep 2002 09:27:11 -0700 (PDT) Date: Wed, 4 Sep 2002 09:27:11 -0700 From: Alfred Perlstein To: Julian Elischer Cc: Bruce Evans , John Baldwin , arch@FreeBSD.ORG Subject: Re: Process/thread states. Message-ID: <20020904162711.GO73747@elvis.mu.org> References: <20020904194643.H914-100000@gamplex.bde.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Julian Elischer [020904 09:20] wrote: > > > On Wed, 4 Sep 2002, Bruce Evans wrote: > > > > > I'd rather see (td->td_state == TDS_RUNNING). Only very lay readers don't > > want to know anything about the details hidden by the macro. > > Assembler would be the ultimate in that direction.. I have to agree with Julian on this one, it's really annoying when we have bugs just because someone forgot that not only is foo->flags == SOMETHING, but that foo->enum is SOMETHINGELSE. Since the macros will be pretty simple for the most part and the compiler is somewhat smart about constant folding let's do it the way that Julian suggested. -- -Alfred Perlstein [alfred@freebsd.org] [#bsdcode/efnet/irc.prison.net] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message