From owner-freebsd-arch Wed Jan 17 19:30:55 2001 Delivered-To: freebsd-arch@freebsd.org Received: from smtp10.phx.gblx.net (smtp10.phx.gblx.net [206.165.6.140]) by hub.freebsd.org (Postfix) with ESMTP id 836D737B400; Wed, 17 Jan 2001 19:30:38 -0800 (PST) Received: (from daemon@localhost) by smtp10.phx.gblx.net (8.9.3/8.9.3) id UAA100182; Wed, 17 Jan 2001 20:30:16 -0700 Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp10.phx.gblx.net, id smtpdzDbmEa; Wed Jan 17 20:30:12 2001 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id UAA25782; Wed, 17 Jan 2001 20:30:19 -0700 (MST) From: Terry Lambert Message-Id: <200101180330.UAA25782@usr08.primenet.com> Subject: Re: HEADS-UP: await/asleep removal imminent To: jhb@FreeBSD.ORG (John Baldwin) Date: Thu, 18 Jan 2001 03:30:19 +0000 (GMT) Cc: jasone@canonware.com (Jason Evans), arch@FreeBSD.ORG, rjesup@wgate.com (Randell Jesup), bright@wintelcom.net (Alfred Perlstein) In-Reply-To: from "John Baldwin" at Jan 17, 2001 10:55:09 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Well, it will be unused if we axe all tsleep's in favor of cv's which does > incur extra overhead, as each cv has to be init'd and destroy'd and carries a > linked list around with it. The extra storage overhead doesn't outweight the > speed increase (from lack of the hash lookup) in all cases I think, so I'm not > sure we want to axe tsleep() just yet. If you axe tsleep() then asleep() can > be emulated by either passing cv's around between functions. I'll ask the same question I asked the POSIX committee about mutex initialization: Why is a non-default initialization required? Why explicitly choose an implementation that doesn't permit static instances to be declared and used, without explicit initialization? What is the freaking problem with "zero" not being a perfectly valid number in this warped philosophy? Pick a "just initialized" state that equals "all zeros". Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message