You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by gr...@apache.org on 2007/08/16 19:26:28 UTC
svn commit: r566786 - /apr/apr/branches/0.9.x/include/apr_ring.h
Author: gregames
Date: Thu Aug 16 10:26:27 2007
New Revision: 566786
URL: http://svn.apache.org/viewvc?view=rev&rev=566786
Log:
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
Modified:
apr/apr/branches/0.9.x/include/apr_ring.h
Modified: apr/apr/branches/0.9.x/include/apr_ring.h
URL: http://svn.apache.org/viewvc/apr/apr/branches/0.9.x/include/apr_ring.h?view=diff&rev=566786&r1=566785&r2=566786
==============================================================================
--- apr/apr/branches/0.9.x/include/apr_ring.h (original)
+++ apr/apr/branches/0.9.x/include/apr_ring.h Thu Aug 16 10:26:27 2007
@@ -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; \
}
/**