]> granicus.if.org Git - apache/commitdiff
Fix up the types used for atomics
authorBradley Nicholes <bnicholes@apache.org>
Thu, 4 Dec 2003 00:16:13 +0000 (00:16 +0000)
committerBradley Nicholes <bnicholes@apache.org>
Thu, 4 Dec 2003 00:16:13 +0000 (00:16 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101977 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_cache.h
modules/experimental/mod_mem_cache.c

index b68492d3371f39c46b12efedeb8ad45bce6fa9cc..c6bead421a622118241e86e617aca86cec1b95fa 100644 (file)
@@ -219,7 +219,7 @@ struct cache_object {
     apr_size_t count;   /* Number of body bytes written to the cache so far */
     int complete;
 #ifdef USE_ATOMICS
-    apr_atomic_t refcount;
+    apr_uint32_t refcount;
 #else
     apr_size_t refcount;
 #endif
index f8fb0b3d281f1a68c29df2aed4ec631320b83553..d0a24ec0c3d4ee15eeadebcc49fea99cf9036fe0 100644 (file)
@@ -103,7 +103,7 @@ typedef struct mem_cache_object {
     long total_refs;          /**< total number of references this entry has had */
 
 #ifdef USE_ATOMICS
-    apr_atomic_t pos;   /**< the position of this entry in the cache */
+    apr_uint32_t pos;   /**< the position of this entry in the cache */
 #else
     apr_ssize_t pos;
 #endif