summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgregames <gregames@13f79535-47bb-0310-9956-ffa450edef68>2007-08-16 17:26:27 +0000
committergregames <gregames@13f79535-47bb-0310-9956-ffa450edef68>2007-08-16 17:26:27 +0000
commit54caad0bee7610e19cf1dda870b264027f3fce4c (patch)
tree825aa3b448af8c8ea571fe8f25a43e48e57bf47c
parent6f970287a6e6e3efe0b65e55e8be979c6d4b0568 (diff)
downloadlibapr-54caad0bee7610e19cf1dda870b264027f3fce4c.tar.gz
insure that an optimizing compiler will re-load the links from memory each time
they are referenced. it is especially helpful after an APR_BUCKET_REMOVE. backport of http://svn.apache.org/viewvc?view=rev&rev=566349 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@566786 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--include/apr_ring.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/apr_ring.h b/include/apr_ring.h
index 96250cfbb..79efb4366 100644
--- a/include/apr_ring.h
+++ b/include/apr_ring.h
@@ -90,8 +90,8 @@
*/
#define APR_RING_HEAD(head, elem) \
struct head { \
- struct elem *next; \
- struct elem *prev; \
+ struct elem * volatile next; \
+ struct elem * volatile prev; \
}
/**