httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Life is hard, and then you die." <ron...@innovation.ch>
Subject Re: APR locking schemes
Date Fri, 10 Mar 2000 03:55:28 GMT

Yup, got patches. I'll commit as soon as Ryan gives the ok.


  Cheers,

  Ronald

One day, rbb@apache.org wrote:
> 
> This has been noticed by somebody else.  (I think it was ronald).  We'll
> fix this after the alpha.
> 
> Ryan
> 
> On Thu, 9 Mar 2000 simo@us.ibm.com wrote:
> 
> > I've been looking at APR locking schemes and found something confusing.  In
> > apr/locks/unix/locks.c there is the following code in function
> > ap_create_lock:
> > 
> >        if (type != APR_CROSS_PROCESS) {
> >    #if APR_HAS_THREADS
> >            if ((stat = create_intra_lock(new)) != APR_SUCCESS) {
> >                return stat;
> >            }
> >    #else
> >            return APR_ENOTIMPL;
> >    #endif
> >        }
> >        if (type != APR_INTRAPROCESS) {
> >            if ((stat = create_inter_lock(new)) != APR_SUCCESS) {
> >                return stat;
> >            }
> >        }
> > 
> > APR_CROSS_PROCESS and APR_INTRAPROCESS are defined in arp_lock.h as values
> > for scope enum not a type. It looks to me that this code is trying to
> > compare a type variable with a scope value.  Is this right?
> > 
> > Thanks.
> > 
> > Rob Simonson
> > 
> > 
> > 
> > 
> 
> 
> Come to the first official Apache Software Foundation
> Conference!!!   <http://ApacheCon.Com/>
> 
> _______________________________________________________________________________
> Ryan Bloom                        	rbb@apache.org
> 406 29th St.
> San Francisco, CA 94131
> -------------------------------------------------------------------------------
> 
> 
> 


Mime
View raw message