httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject cvs commit: httpd-2.0/modules/experimental mod_mem_cache.c
Date Wed, 05 Jun 2002 18:38:53 GMT
gregames    2002/06/05 11:38:53

  Modified:    modules/experimental mod_mem_cache.c
  Log:
  fix a compile failure on platforms where apr_atomic_t is a structure.
  
  Revision  Changes    Path
  1.66      +4 -0      httpd-2.0/modules/experimental/mod_mem_cache.c
  
  Index: mod_mem_cache.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/experimental/mod_mem_cache.c,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- mod_mem_cache.c	5 Jun 2002 16:31:37 -0000	1.65
  +++ mod_mem_cache.c	5 Jun 2002 18:38:52 -0000	1.66
  @@ -378,7 +378,11 @@
       }
   
       /* Finish initing the cache object */
  +#ifdef USE_ATOMICS
  +    apr_atomic_set(&obj->refcount, 1);
  +#else 
       obj->refcount = 1;
  +#endif
       obj->complete = 0;
       obj->cleanup = 0;
       obj->vobj = mobj;
  
  
  

Mime
View raw message