httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@us.ibm.com
Subject APR locking schemes
Date Thu, 09 Mar 2000 22:33:51 GMT
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




Mime
View raw message