Mercurial > hg > CbC > CbC_llvm
diff libcxx/src/shared_mutex.cpp @ 236:c4bab56944e8 llvm-original
LLVM 16
author | kono |
---|---|
date | Wed, 09 Nov 2022 17:45:10 +0900 |
parents | 1d019706d866 |
children | 1f2b6ac9f198 |
line wrap: on
line diff
--- a/libcxx/src/shared_mutex.cpp Wed Jul 21 10:27:27 2021 +0900 +++ b/libcxx/src/shared_mutex.cpp Wed Nov 09 17:45:10 2022 +0900 @@ -1,4 +1,4 @@ -//===---------------------- shared_mutex.cpp ------------------------------===// +//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,12 +6,13 @@ // //===----------------------------------------------------------------------===// -#include "__config" +#include <__config> + #ifndef _LIBCPP_HAS_NO_THREADS -#include "shared_mutex" +#include <shared_mutex> #if defined(__ELF__) && defined(_LIBCPP_LINK_PTHREAD_LIB) -#pragma comment(lib, "pthread") +# pragma comment(lib, "pthread") #endif _LIBCPP_BEGIN_NAMESPACE_STD @@ -105,13 +106,13 @@ // Shared Timed Mutex // These routines are here for ABI stability -shared_timed_mutex::shared_timed_mutex() : __base() {} -void shared_timed_mutex::lock() { return __base.lock(); } -bool shared_timed_mutex::try_lock() { return __base.try_lock(); } -void shared_timed_mutex::unlock() { return __base.unlock(); } -void shared_timed_mutex::lock_shared() { return __base.lock_shared(); } -bool shared_timed_mutex::try_lock_shared() { return __base.try_lock_shared(); } -void shared_timed_mutex::unlock_shared() { return __base.unlock_shared(); } +shared_timed_mutex::shared_timed_mutex() : __base_() {} +void shared_timed_mutex::lock() { return __base_.lock(); } +bool shared_timed_mutex::try_lock() { return __base_.try_lock(); } +void shared_timed_mutex::unlock() { return __base_.unlock(); } +void shared_timed_mutex::lock_shared() { return __base_.lock_shared(); } +bool shared_timed_mutex::try_lock_shared() { return __base_.try_lock_shared(); } +void shared_timed_mutex::unlock_shared() { return __base_.unlock_shared(); } _LIBCPP_END_NAMESPACE_STD