Commit 8679a8ef by Paolo Carlini

concurrence.h: Use __GCC_HAVE_SYNC_COMPARE_AND_SWAP_*.

2007-05-24  Paolo Carlini  <pcarlini@suse.de>

	* include/ext/concurrence.h: Use __GCC_HAVE_SYNC_COMPARE_AND_SWAP_*.

From-SVN: r125044
parent 88d1c2ad
2007-05-23 Steve Ellcey <sje@cup.hp.com> 2007-05-24 Paolo Carlini <pcarlini@suse.de>
* include/ext/concurrence.h: Use __GCC_HAVE_SYNC_COMPARE_AND_SWAP_*.
2007-05-24 Steve Ellcey <sje@cup.hp.com>
* Makefile.in: Regenerate. * Makefile.in: Regenerate.
* configure: Regenerate. * configure: Regenerate.
......
...@@ -53,9 +53,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ...@@ -53,9 +53,8 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
// the current configuration. // the current configuration.
static const _Lock_policy __default_lock_policy = static const _Lock_policy __default_lock_policy =
#ifdef __GTHREADS #ifdef __GTHREADS
// NB: This macro doesn't actually exist yet in the compiler, but is #if (defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2) \
// set somewhat haphazardly at configure time. && defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4))
#ifdef _GLIBCXX_ATOMIC_BUILTINS
_S_atomic; _S_atomic;
#else #else
_S_mutex; _S_mutex;
...@@ -63,7 +62,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx) ...@@ -63,7 +62,7 @@ _GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
#else #else
_S_single; _S_single;
#endif #endif
// NB: As this is used in libsupc++, need to only depend on // NB: As this is used in libsupc++, need to only depend on
// exception. No stdexception classes, no use of std::string. // exception. No stdexception classes, no use of std::string.
class __concurrence_lock_error : public std::exception class __concurrence_lock_error : public std::exception
......
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