You're right; the apr_proc_mutex_t won't be sufficient in this case. We'll really need apr_global_mutex_t for this. If that's going to be available soon, I'll switch the rewrite code to use it when it's released; but if not, I'll revert to the old lock API for now. --Brian
Aaron Bannert wrote: >On Sat, Feb 16, 2002 at 09:57:17PM -0000, [EMAIL PROTECTED] wrote: > >>brianp 02/02/16 13:57:17 >> >> Modified: modules/mappers mod_rewrite.c >> Log: >> Converted the rewrite mapper lock to the new lock API >> > >Did mod_rewrite actually need a LOCKALL? If so, apr_proc_mutex_t >is an insufficient replacement, since it can not guarantee mutual >exclusion of threads in the same process. > >-aaron > >> - rc = apr_lock_create(&rewrite_mapr_lock_acquire, APR_MUTEX, APR_LOCKALL, >> - APR_LOCK_DEFAULT, lockname, p); >> + rc = apr_proc_mutex_create(&rewrite_mapr_lock_acquire, lockname, >> + APR_LOCK_DEFAULT, p); >> >