From d554574428b8ff371b84bd4b8170c69950efdbcf Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik <bkoz@redhat.com> Date: Wed, 16 Mar 2011 00:02:11 +0000 Subject: [PATCH] thread: Revert. 2011-03-15 Benjamin Kosnik <bkoz@redhat.com> * include/std/thread: Revert. * src/thread.cc: Same. * config/abi/pre/gnu.ver: Same. From-SVN: r171021 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/config/abi/pre/gnu.ver | 5 ----- libstdc++-v3/include/std/thread | 4 +++- libstdc++-v3/src/thread.cc | 2 -- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b368c0270450..2fcc943b8290 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2011-03-15 Benjamin Kosnik <bkoz@redhat.com> + + * include/std/thread: Revert. + * src/thread.cc: Same. + * config/abi/pre/gnu.ver: Same. + 2011-03-15 Doug Kwan <dougkwan@google.com> PR libstdc++/48123 diff --git a/libstdc++-v3/config/abi/pre/gnu.ver b/libstdc++-v3/config/abi/pre/gnu.ver index d59521096ec0..f1c503441b9e 100644 --- a/libstdc++-v3/config/abi/pre/gnu.ver +++ b/libstdc++-v3/config/abi/pre/gnu.ver @@ -1255,11 +1255,6 @@ GLIBCXX_3.4.15 { _ZTSNSt13__future_base11_State_baseE; _ZTVNSt13__future_base11_State_baseE; - _ZNSt6thread10_Impl_baseD*; - _ZTINSt6thread10_Impl_baseE; - _ZTSNSt6thread10_Impl_baseE; - _ZTVNSt6thread10_Impl_baseE; - } GLIBCXX_3.4.14; # Symbols in the support library (libsupc++) have their own tag. diff --git a/libstdc++-v3/include/std/thread b/libstdc++-v3/include/std/thread index e43c126cdceb..de58e8141001 100644 --- a/libstdc++-v3/include/std/thread +++ b/libstdc++-v3/include/std/thread @@ -100,7 +100,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION { __shared_base_type _M_this_ptr; - virtual ~_Impl_base(); + inline virtual ~_Impl_base(); virtual void _M_run() = 0; }; @@ -195,6 +195,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } }; + inline thread::_Impl_base::~_Impl_base() = default; + inline void swap(thread& __x, thread& __y) { __x.swap(__y); } diff --git a/libstdc++-v3/src/thread.cc b/libstdc++-v3/src/thread.cc index 7c923a266101..c164e8a01610 100644 --- a/libstdc++-v3/src/thread.cc +++ b/libstdc++-v3/src/thread.cc @@ -54,8 +54,6 @@ namespace std _GLIBCXX_VISIBILITY(default) _GLIBCXX_BEGIN_NAMESPACE_VERSION - thread::_Impl_base::~_Impl_base() = default; - void thread::join() { -- GitLab