Commit b0c2c850 by Benjamin Kosnik Committed by Benjamin Kosnik

atomic.cc: Correct guards to match mutex.cc.

2008-12-12  Benjamin Kosnik  <bkoz@redhat.com>

	* src/atomic.cc: Correct guards to match mutex.cc.

From-SVN: r142735
parent d9db9855
2008-12-12 Benjamin Kosnik <bkoz@redhat.com>
* src/atomic.cc: Correct guards to match mutex.cc.
2008-12-11 Benjamin Kosnik <bkoz@redhat.com> 2008-12-11 Benjamin Kosnik <bkoz@redhat.com>
Richard Henderson <rth@redhat.com> Richard Henderson <rth@redhat.com>
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
namespace namespace
{ {
#ifdef _GLIBCXX_HAS_GTHREADS #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
std::mutex atomic_mutex; std::mutex atomic_mutex;
#endif #endif
...@@ -56,7 +56,7 @@ namespace std ...@@ -56,7 +56,7 @@ namespace std
bool bool
atomic_flag::test_and_set(memory_order) volatile atomic_flag::test_and_set(memory_order) volatile
{ {
#ifdef _GLIBCXX_HAS_GTHREADS #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
lock_guard<mutex> __lock(atomic_mutex); lock_guard<mutex> __lock(atomic_mutex);
#endif #endif
bool result = _M_i; bool result = _M_i;
...@@ -67,7 +67,7 @@ namespace std ...@@ -67,7 +67,7 @@ namespace std
void void
atomic_flag::clear(memory_order) volatile atomic_flag::clear(memory_order) volatile
{ {
#ifdef _GLIBCXX_HAS_GTHREADS #if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)
lock_guard<mutex> __lock(atomic_mutex); lock_guard<mutex> __lock(atomic_mutex);
#endif #endif
_M_i = false; _M_i = false;
......
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