httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Bannert <aa...@clove.org>
Subject Re: [PATCH] Use mutex locks in mod_specweb99.c
Date Fri, 13 Dec 2002 18:10:38 GMT

On Friday, December 13, 2002, at 10:05  AM, <rbb@apache.org> wrote:
>> They are in apr_private.h.
>
> Yes, but they are also in apr.h.
>
> pigmy:~/apr/include -  9:57AM% grep "_IS_GLOBAL" apr.h
> #define APR_PROCESS_LOCK_IS_GLOBAL        0
> #define APR_PROC_MUTEX_IS_GLOBAL      0
> pigmy:~/apr/include -  9:57AM% cd arch/unix
> pigmy:~/apr/include/arch/unix -  9:57AM% grep "_IS_GLOBAL" 
> apr_private.h
> /* #undef POSIXSEM_IS_GLOBAL */
> /* #undef SYSVSEM_IS_GLOBAL */
> /* #undef FCNTL_IS_GLOBAL */
> /* #undef FLOCK_IS_GLOBAL */
> pigmy:~/apr/include/arch/unix -  9:57AM%
>
>
> So, why are they in apr.h at all?

Because they are used in public header files, and we don't want
to pollute the public header files with symbols from the private
headers.

aaron@gandalf% grep -lr _IS_GLOBAL . | grep \.h\$
./acconfig.h
./include/apr.h
./include/apr_global_mutex.h
./include/apr_portable.h
./include/arch/unix/apr_private.h
./include/arch/unix/proc_mutex.h

-aaron


Mime
View raw message