summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__mutex_base
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
commit906c872db9344ce483282938f83ee5d4a262f3e6 (patch)
tree77a018a289c0de31f1252db45806d5eea81b1ebe /libcxx/include/__mutex_base
parent37a0fc483bfa77ee7e85c0cfa2c8cd7ee124e5b9 (diff)
downloadbcm5719-llvm-906c872db9344ce483282938f83ee5d4a262f3e6.tar.gz
bcm5719-llvm-906c872db9344ce483282938f83ee5d4a262f3e6.zip
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. llvm-svn: 252385
Diffstat (limited to 'libcxx/include/__mutex_base')
-rw-r--r--libcxx/include/__mutex_base3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/include/__mutex_base b/libcxx/include/__mutex_base
index c78be2472a0..b019b4760d1 100644
--- a/libcxx/include/__mutex_base
+++ b/libcxx/include/__mutex_base
@@ -308,6 +308,7 @@ public:
template <class _Rep, class _Period, class _Predicate>
bool
+ _LIBCPP_INLINE_VISIBILITY
wait_for(unique_lock<mutex>& __lk,
const chrono::duration<_Rep, _Period>& __d,
_Predicate __pred);
@@ -392,7 +393,7 @@ condition_variable::wait_for(unique_lock<mutex>& __lk,
}
template <class _Rep, class _Period, class _Predicate>
-inline _LIBCPP_INLINE_VISIBILITY
+inline
bool
condition_variable::wait_for(unique_lock<mutex>& __lk,
const chrono::duration<_Rep, _Period>& __d,
OpenPOWER on IntegriCloud