[libcxx-commits] [PATCH] D72809: [libcxx] Use mtx_plain | mtx_recursive following C11 API

Petr Hosek via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 15 15:20:34 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG3481e5d7ed08: [libcxx] Use mtx_plain | mtx_recursive following C11 API (authored by phosek).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72809/new/

https://reviews.llvm.org/D72809

Files:
  libcxx/include/__threading_support


Index: libcxx/include/__threading_support
===================================================================
--- libcxx/include/__threading_support
+++ libcxx/include/__threading_support
@@ -445,7 +445,7 @@
 
 int __libcpp_recursive_mutex_init(__libcpp_recursive_mutex_t *__m)
 {
-  return mtx_init(__m, mtx_recursive) == thrd_success ? 0 : EINVAL;
+  return mtx_init(__m, mtx_plain | mtx_recursive) == thrd_success ? 0 : EINVAL;
 }
 
 int __libcpp_recursive_mutex_lock(__libcpp_recursive_mutex_t *__m)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72809.238380.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200115/1b515983/attachment.bin>


More information about the libcxx-commits mailing list