apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grega...@apache.org
Subject svn commit: r566786 - /apr/apr/branches/0.9.x/include/apr_ring.h
Date Thu, 16 Aug 2007 17:26:28 GMT
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;					\
     }
 
 /**



Mime
View raw message