httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: Removing ap_dummy_mutex from API
Date Fri, 02 Oct 1998 01:44:55 GMT
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
> 


Mime
View raw message