OSDN Git Service

PR libstdc++/49894
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Oct 2011 23:26:25 +0000 (23:26 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Oct 2011 23:26:25 +0000 (23:26 +0000)
commite472b6e55a6a9ee668ddde8df21c2bb723db47e2
treee3d52074dedc82f0f2c8c9061b21d1667c769f01
parent0db4cb4173f8989e98990586932234c71b71288f
PR libstdc++/49894
* include/std/mutex (__mutex_base,__recursive_mutex_base): Define new
base classes to manage construction/destruction of native mutexes,
using NSDMI when INIT macros are defined.
(mutex,recursive_mutex,timed_mutex,recursive_timed_mutex): Derive from
new base classes.
* include/std/condition_variable (condition_variable): Use NSDMI when
INIT macro is defined. Use noexcept.
* src/condition_variable.cc (condition_variable): Explicitly-default
constructor/destructor when using NSDMI. Use noexcept.
(condition_variable_any): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180411 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/condition_variable
libstdc++-v3/include/std/mutex
libstdc++-v3/src/condition_variable.cc