Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r79667 - trunk/libs/atomic/test
From: hcb_at_[hidden]
Date: 2012-07-22 09:02:44


Author: helge.bahmann
Date: 2012-07-22 09:02:43 EDT (Sun, 22 Jul 2012)
New Revision: 79667
URL: http://svn.boost.org/trac/boost/changeset/79667

Log:
atomic: fix lockfree expectation on win64

Expect atomic<long long> to be lockfree on win64 since it it using cmpxchg64
now.

Text files modified:
   trunk/libs/atomic/test/lockfree.cpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: trunk/libs/atomic/test/lockfree.cpp
==============================================================================
--- trunk/libs/atomic/test/lockfree.cpp (original)
+++ trunk/libs/atomic/test/lockfree.cpp 2012-07-22 09:02:43 EDT (Sun, 22 Jul 2012)
@@ -125,7 +125,11 @@
 #define EXPECT_SHORT_LOCK_FREE 2
 #define EXPECT_INT_LOCK_FREE 2
 #define EXPECT_LONG_LOCK_FREE 2
+#if defined(_WIN64)
+#define EXPECT_LLONG_LOCK_FREE 2
+#else
 #define EXPECT_LLONG_LOCK_FREE 0
+#endif
 #define EXPECT_POINTER_LOCK_FREE 2
 #define EXPECT_BOOL_LOCK_FREE 2
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk