stl_threads.h (_Atomic_swap): Only enable path when platform supports __GTHREAD_MUTEX_INIT.

* include/bits/stl_threads.h (_Atomic_swap): Only enable path
        when platform supports __GTHREAD_MUTEX_INIT.

From-SVN: r46725
This commit is contained in:
Loren J. Rittle 2001-11-02 22:59:46 +00:00 committed by Loren J. Rittle
parent 222485455e
commit 1b5e9d7e1b
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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