Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 28122 invoked by uid 6000); 21 Oct 1999 11:22:39 -0000 Received: (qmail 28115 invoked from network); 21 Oct 1999 11:22:38 -0000 Received: from fwns2d.raleigh.ibm.com (HELO fwns2.raleigh.ibm.com) (204.146.167.236) by taz.hyperreal.org with SMTP; 21 Oct 1999 11:22:38 -0000 Received: from rtpmail02.raleigh.ibm.com (rtpmail02.raleigh.ibm.com [9.37.172.48]) by fwns2.raleigh.ibm.com (8.9.0/8.9.0/RTP-FW-1.2) with ESMTP id HAA30734 for ; Thu, 21 Oct 1999 07:22:12 -0400 Received: from chosondo.raleigh.ibm.com (chosondo.raleigh.ibm.com [9.37.73.195]) by rtpmail02.raleigh.ibm.com (8.8.5/8.8.5/RTP-ral-1.1) with ESMTP id HAA30570 for ; Thu, 21 Oct 1999 07:22:09 -0400 Date: Thu, 21 Oct 1999 07:22:05 -0400 (EDT) From: Ryan Bloom To: new-httpd@apache.org Subject: Re: cvs commit: apache-2.0/src/lib/apr APRDesign In-Reply-To: <19991020154620.A21007@io.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org > If a programmer tries to create a thread on an unthreaded system, the > compile should fail. However, thread locks should still exist and be > no-ops. Why? If mmap doesn't exist on your platform and you try to use > it, you're hosed. But if thread locks don't exist because there are no > threads, then your code will still work just fine. HUH?!?!?!? When was the last time you saw a non-threaded platform that provided thread locks? If we are going to not compile when a function is not supported, then we should not compile when a function is not supported. I don't want to create a bunch of rules about when we return APR_ENOTIMPL, and when we don't define the function. It's really simple. If the platform supports it, don't provide the function. If the platform doesn't support it (ie Windows) return APR_ENOTIMPL. Ryan _______________________________________________________________________ Ryan Bloom rbb@raleigh.ibm.com 4205 S Miami Blvd RTP, NC 27709 It's a beautiful sight to see good dancers doing simple steps. It's a painful sight to see beginners doing complicated patterns.