From: Bradley Nicholes Date: Thu, 4 Dec 2003 00:16:13 +0000 (+0000) Subject: Fix up the types used for atomics X-Git-Tag: pre_ajp_proxy~959 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b06a79e90d45b7b1edf884b7957aba6b8bae447;p=apache Fix up the types used for atomics git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101977 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/experimental/mod_cache.h b/modules/experimental/mod_cache.h index b68492d337..c6bead421a 100644 --- a/modules/experimental/mod_cache.h +++ b/modules/experimental/mod_cache.h @@ -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 diff --git a/modules/experimental/mod_mem_cache.c b/modules/experimental/mod_mem_cache.c index f8fb0b3d28..d0a24ec0c3 100644 --- a/modules/experimental/mod_mem_cache.c +++ b/modules/experimental/mod_mem_cache.c @@ -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