Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 18071 invoked by uid 6000); 2 Oct 1998 01:45:35 -0000 Received: (qmail 18059 invoked from network); 2 Oct 1998 01:45:34 -0000 Received: from twinlark.arctic.org (204.62.130.91) by taz.hyperreal.org with SMTP; 2 Oct 1998 01:45:34 -0000 Received: (qmail 27878 invoked by uid 500); 2 Oct 1998 01:44:55 -0000 Date: Thu, 1 Oct 1998 18:44:55 -0700 (PDT) From: Dean Gaudet To: new-httpd@apache.org Subject: Re: Removing ap_dummy_mutex from API In-Reply-To: <9810011832.aa15641@paris.ics.uci.edu> Message-ID: X-Comment: Visit http://www.arctic.org/~dgaudet/legal for information regarding copyright and disclaimer. 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 Status: O It was there because I didn't want to pick an arbitrary non-NULL constant to cast. So I just put in a global and used that. It doesn't really matter, nothing should use it. Dean On Thu, 1 Oct 1998, Roy T. Fielding wrote: > >This removes the global ap_dummy_mutex used in multithread.h > >as so: > > > > -#define ap_create_mutex(name) ((mutex *)ap_dummy_mutex) > > +#define ap_create_mutex(name) ((mutex *)-1) > > > >It is currently defined in http_main.c > > -/* this just need to be anything non-NULL */ > > -void *ap_dummy_mutex = &ap_dummy_mutex; > > > >It's one of the four things that keeps one from using alloc.c > >buff.c, and ap/ standalone. > > I couldn't figure out from your description why this was necessary. > Could you explain? Just a short note -- I am mostly curious because > I'm not sure what it was doing there in the first place. > > ....Roy >