summaryrefslogtreecommitdiff
path: root/include/thread
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-11-07 01:22:13 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-11-07 01:22:13 +0000
commita3b25f81d131a94dce8b13b2b7b30a3d35c94022 (patch)
treeb73794fab07dfd8e1cd48d4b2888bdcb27e585f3 /include/thread
parent746572b91d0b055e56fca202ad5ca34b13fbb084 (diff)
downloadlibcxx-a3b25f81d131a94dce8b13b2b7b30a3d35c94022.tar.gz
Cleanup: move visibility/linkage attributes to the first declaration.
This change moves visibility attributes from out-of-class method definitions to in-class declaration. This is needed for a switch to attribute((internal_linkage)) (see http://reviews.llvm.org/D13925) which can only appear on the first declaration. This change does not touch istream/ostream/streambuf. They are handled separately in http://reviews.llvm.org/D14409. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@252385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/thread')
-rw-r--r--include/thread3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/thread b/include/thread
index 3dde39026..6857e9edb 100644
--- a/include/thread
+++ b/include/thread
@@ -318,6 +318,7 @@ public:
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
_LIBCPP_INLINE_VISIBILITY
thread(thread&& __t) _NOEXCEPT : __t_(__t.__t_) {__t.__t_ = 0;}
+ _LIBCPP_INLINE_VISIBILITY
thread& operator=(thread&& __t) _NOEXCEPT;
#endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES
@@ -399,7 +400,7 @@ thread::thread(_Fp __f)
#ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES
-inline _LIBCPP_INLINE_VISIBILITY
+inline
thread&
thread::operator=(thread&& __t) _NOEXCEPT
{