httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.com>
Subject cvs commit: apache/src/modules/proxy proxy_cache.c
Date Mon, 16 Jun 1997 17:58:35 GMT
dgaudet     97/06/16 10:58:35

  Modified:    src/modules/proxy  proxy_cache.c
  Log:
  apply mutex warning fix
  
  Revision  Changes    Path
  1.15      +5 -5      apache/src/modules/proxy/proxy_cache.c
  
  Index: proxy_cache.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/modules/proxy/proxy_cache.c,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -C3 -r1.14 -r1.15
  *** proxy_cache.c	1997/06/15 19:22:47	1.14
  --- proxy_cache.c	1997/06/16 17:58:34	1.15
  ***************
  *** 111,131 ****
    {
        static int inside = 0;
    
  !     acquire_mutex(garbage_mutex);
        if(inside == 1)
        {
  !         release_mutex(garbage_mutex);
            return;
        }
        else
            inside = 1;
  !     release_mutex(garbage_mutex);
    
        help_proxy_garbage_coll(r);
    
  !     acquire_mutex(garbage_mutex);
        inside = 0;
  !     release_mutex(garbage_mutex);
    }
    
    
  --- 111,131 ----
    {
        static int inside = 0;
    
  !     (void)acquire_mutex(garbage_mutex);
        if(inside == 1)
        {
  !         (void)release_mutex(garbage_mutex);
            return;
        }
        else
            inside = 1;
  !     (void)release_mutex(garbage_mutex);
    
        help_proxy_garbage_coll(r);
    
  !     (void)acquire_mutex(garbage_mutex);
        inside = 0;
  !     (void)release_mutex(garbage_mutex);
    }
    
    
  
  
  

Mime
View raw message