Commit 3b04e1e4 by Andrew MacLeod Committed by Andrew Macleod

re PR libstdc++/51102 (missing macros in <atomic>)


2011-11-16  Andrew MacLeod  <amacleod@redhat.com>

	PR libstdc++/51102
	* include/bits/atomic_base.h (ATOMIC_BOOL_LOCK_FREE,
	ATOMIC_POINTER_LOCK_FREE): New. Add missing macros.

From-SVN: r181414
parent 1a4571cb
2011-11-16 Andrew MacLeod <amacleod@redhat.com>
PR libstdc++/51102
* include/bits/atomic_base.h (ATOMIC_BOOL_LOCK_FREE,
ATOMIC_POINTER_LOCK_FREE): New. Add missing macros.
2011-11-15 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/51142
......
......@@ -93,6 +93,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define LOCKFREE_PROP(T) (__atomic_always_lock_free (sizeof (T), 0) ? 2 : 1)
#define ATOMIC_BOOL_LOCK_FREE LOCKFREE_PROP (bool)
#define ATOMIC_CHAR_LOCK_FREE LOCKFREE_PROP (char)
#define ATOMIC_CHAR16_T_LOCK_FREE LOCKFREE_PROP (char16_t)
#define ATOMIC_CHAR32_T_LOCK_FREE LOCKFREE_PROP (char32_t)
......@@ -101,7 +102,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
#define ATOMIC_INT_LOCK_FREE LOCKFREE_PROP (int)
#define ATOMIC_LONG_LOCK_FREE LOCKFREE_PROP (long)
#define ATOMIC_LLONG_LOCK_FREE LOCKFREE_PROP (long long)
#define ATOMIC_POINTER_LOCK_FREE LOCKFREE_PROP (void *)
// Base types for atomics.
template<typename _IntTp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment