diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-05 17:54:45 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-01-05 17:54:45 +0000 |
| commit | 58a0dcee8009d6504ce05874e644eb1df1276a11 (patch) | |
| tree | 4fe775a2185648a45cc42ae50174053be78e8a41 /libcxx/include/mutex | |
| parent | ec63f62c58c84f7c97d665672a41448dfd9c3c9b (diff) | |
| download | bcm5719-llvm-58a0dcee8009d6504ce05874e644eb1df1276a11.tar.gz bcm5719-llvm-58a0dcee8009d6504ce05874e644eb1df1276a11.zip | |
thread_support: split out {,non-}recursive mutex
Split out the recursive and non-recursive mutex. This split is needed
for platforms which may use differing types for the two mutex (e.g.
Win32 threads).
llvm-svn: 291145
Diffstat (limited to 'libcxx/include/mutex')
| -rw-r--r-- | libcxx/include/mutex | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxx/include/mutex b/libcxx/include/mutex index 155b2c352b7..8526533f140 100644 --- a/libcxx/include/mutex +++ b/libcxx/include/mutex @@ -206,7 +206,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD class _LIBCPP_TYPE_VIS recursive_mutex { - __libcpp_mutex_t __m_; + __libcpp_recursive_mutex_t __m_; public: recursive_mutex(); @@ -221,7 +221,8 @@ public: bool try_lock() _NOEXCEPT; void unlock() _NOEXCEPT; - typedef __libcpp_mutex_t* native_handle_type; + typedef __libcpp_recursive_mutex_t* native_handle_type; + _LIBCPP_INLINE_VISIBILITY native_handle_type native_handle() {return &__m_;} }; |

