diff options
author | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-02 22:59:46 +0000 |
---|---|---|
committer | ljrittle <ljrittle@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-02 22:59:46 +0000 |
commit | ca16e054af7acf0f03ba4f547d58a6be8aef8001 (patch) | |
tree | a8c2063e37b6e3b1f3513aea67b795342c08f804 | |
parent | 7bdf04918cd0d43988ae088d11c5b07f24e892ed (diff) | |
download | ppe42-gcc-ca16e054af7acf0f03ba4f547d58a6be8aef8001.tar.gz ppe42-gcc-ca16e054af7acf0f03ba4f547d58a6be8aef8001.zip |
* include/bits/stl_threads.h (_Atomic_swap): Only enable path
when platform supports __GTHREAD_MUTEX_INIT.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46725 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/stl_threads.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5c35fb68a2d..dac1b00ed03 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2001-11-02 Loren J. Rittle <ljrittle@acm.org> + + * include/bits/stl_threads.h (_Atomic_swap): Only enable path + when platform supports __GTHREAD_MUTEX_INIT. + 2001-11-02 Phil Edwards <pme@gcc.gnu.org> * acconfig.h: Update comments. diff --git a/libstdc++-v3/include/bits/stl_threads.h b/libstdc++-v3/include/bits/stl_threads.h index 20c3deb16fc..6df2ac7ffb8 100644 --- a/libstdc++-v3/include/bits/stl_threads.h +++ b/libstdc++-v3/include/bits/stl_threads.h @@ -196,7 +196,7 @@ struct _Refcount_Base // possibly concurrent updates use _Atomic_swap. // In some cases the operation is emulated with a lock. // GCC extension begin -#ifdef __STL_GTHREADS +#if defined (__STL_GTHREADS) && defined (__GTHREAD_MUTEX_INIT) // We don't provide an _Atomic_swap in this configuration. This only // affects the use of ext/rope with threads. Someone could add this // later, if required. You can start by cloning the __STL_PTHREADS |