]> granicus.if.org Git - apache/commitdiff
fix compile breakage on platforms with default atomics
authorGreg Ames <gregames@apache.org>
Mon, 10 Jun 2002 18:27:13 +0000 (18:27 +0000)
committerGreg Ames <gregames@apache.org>
Mon, 10 Jun 2002 18:27:13 +0000 (18:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95594 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_mem_cache.c

index 82f78f43852d25091679c268a7daad5710cdb9c0..5b6edfa75d9ee03d9778ad2149b3e0d6b62aad89 100644 (file)
@@ -992,6 +992,10 @@ static int mem_cache_post_config(apr_pool_t *p, apr_pool_t *plog,
         apr_thread_mutex_create(&sconf->lock, APR_THREAD_MUTEX_DEFAULT, p);
     }
 
+#ifdef USE_ATOMICS
+    apr_atomic_init(p);
+#endif
+    
     sconf->cache_cache = cache_init(sconf->max_object_cnt,
                                     sconf->max_cache_size,                                   
                                     memcache_get_priority,