@@ -84,16 +84,16 @@ class _LIBCPP_TEMPLATE_VIS unique_lock {
8484 return *this ;
8585 }
8686
87- void lock ();
88- bool try_lock ();
87+ _LIBCPP_HIDE_FROM_ABI void lock ();
88+ _LIBCPP_HIDE_FROM_ABI bool try_lock ();
8989
9090 template <class _Rep , class _Period >
91- bool try_lock_for (const chrono::duration<_Rep, _Period>& __d);
91+ _LIBCPP_HIDE_FROM_ABI bool try_lock_for (const chrono::duration<_Rep, _Period>& __d);
9292
9393 template <class _Clock , class _Duration >
94- bool try_lock_until (const chrono::time_point<_Clock, _Duration>& __t );
94+ _LIBCPP_HIDE_FROM_ABI bool try_lock_until (const chrono::time_point<_Clock, _Duration>& __t );
9595
96- void unlock ();
96+ _LIBCPP_HIDE_FROM_ABI void unlock ();
9797
9898 _LIBCPP_HIDE_FROM_ABI void swap (unique_lock& __u) _NOEXCEPT {
9999 std::swap (__m_, __u.__m_ );
@@ -114,7 +114,7 @@ class _LIBCPP_TEMPLATE_VIS unique_lock {
114114_LIBCPP_CTAD_SUPPORTED_FOR_TYPE (unique_lock);
115115
116116template <class _Mutex >
117- void unique_lock<_Mutex>::lock() {
117+ _LIBCPP_HIDE_FROM_ABI void unique_lock<_Mutex>::lock() {
118118 if (__m_ == nullptr )
119119 __throw_system_error (EPERM, " unique_lock::lock: references null mutex" );
120120 if (__owns_)
@@ -124,7 +124,7 @@ void unique_lock<_Mutex>::lock() {
124124}
125125
126126template <class _Mutex >
127- bool unique_lock<_Mutex>::try_lock() {
127+ _LIBCPP_HIDE_FROM_ABI bool unique_lock<_Mutex>::try_lock() {
128128 if (__m_ == nullptr )
129129 __throw_system_error (EPERM, " unique_lock::try_lock: references null mutex" );
130130 if (__owns_)
@@ -135,7 +135,7 @@ bool unique_lock<_Mutex>::try_lock() {
135135
136136template <class _Mutex >
137137template <class _Rep , class _Period >
138- bool unique_lock<_Mutex>::try_lock_for(const chrono::duration<_Rep, _Period>& __d) {
138+ _LIBCPP_HIDE_FROM_ABI bool unique_lock<_Mutex>::try_lock_for(const chrono::duration<_Rep, _Period>& __d) {
139139 if (__m_ == nullptr )
140140 __throw_system_error (EPERM, " unique_lock::try_lock_for: references null mutex" );
141141 if (__owns_)
@@ -146,7 +146,7 @@ bool unique_lock<_Mutex>::try_lock_for(const chrono::duration<_Rep, _Period>& __
146146
147147template <class _Mutex >
148148template <class _Clock , class _Duration >
149- bool unique_lock<_Mutex>::try_lock_until(const chrono::time_point<_Clock, _Duration>& __t ) {
149+ _LIBCPP_HIDE_FROM_ABI bool unique_lock<_Mutex>::try_lock_until(const chrono::time_point<_Clock, _Duration>& __t ) {
150150 if (__m_ == nullptr )
151151 __throw_system_error (EPERM, " unique_lock::try_lock_until: references null mutex" );
152152 if (__owns_)
@@ -156,7 +156,7 @@ bool unique_lock<_Mutex>::try_lock_until(const chrono::time_point<_Clock, _Durat
156156}
157157
158158template <class _Mutex >
159- void unique_lock<_Mutex>::unlock() {
159+ _LIBCPP_HIDE_FROM_ABI void unique_lock<_Mutex>::unlock() {
160160 if (!__owns_)
161161 __throw_system_error (EPERM, " unique_lock::unlock: not locked" );
162162 __m_->unlock ();
0 commit comments