You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@hyperreal.org on 1999/10/08 19:29:26 UTC

cvs commit: apache-2.0/src/lib/apr acconfig.h

rbb         99/10/08 10:29:25

  Modified:    src/lib/apr acconfig.h
  Log:
  Fix some stupid bugs with the SAFETY_LOCK code.
  Submitted by:  Manoj Kasichainula and Greg Stein
  
  Revision  Changes    Path
  1.4       +3 -4      apache-2.0/src/lib/apr/acconfig.h
  
  Index: acconfig.h
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/acconfig.h,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- acconfig.h	1999/10/06 06:48:49	1.3
  +++ acconfig.h	1999/10/08 17:29:25	1.4
  @@ -69,11 +69,10 @@
   #ifndef _POSIX_THREAD_SAFE_FUNCTIONS
   #define SAFETY_LOCK(func_name, cnt, name_str) \
       { \
  -    struct lock_t *funclock = lock_##func_name; \
  -    if (funclock == NULL) \
  -        if (ap_create_lock(cnt, APR_MUTEX, APR_LOCKALL, name_str, &funclock) != APR_SUCCESS) \
  +    if (lock_##func_name == NULL) \
  +        if (ap_create_lock(cnt, APR_MUTEX, APR_INTRAPROCESS, name_str, &lock_##func_name) != APR_SUCCESS) \
               return APR_NOTTHREADSAFE; \
  -    if (ap_lock(funclock) != APR_SUCCESS) \
  +    if (ap_lock(lock_##func_name) != APR_SUCCESS) \
           return APR_NOTTHREADSAFE; \
       }
   #else