<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/124010>124010</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libcxxabi] option for c11 threads api
</td>
</tr>
<tr>
<th>Labels</th>
<td>
libc++abi
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
libcxxabi has the cmake options LIBCXXABI_ENABLE_THREADS and LIBCXXABI_HAS_PTHREAD_API.
I think it would be nice if there was an option for using c11 threads. In the case of llvm-libc, pthreads is a much larger surface area than pthreads. We have c11 threads support, but not yet all of pthreads.
Perhaps a cmake option for libcxxabi and code changes to use c11 threads instead of pthreads would help us boostrap a c++ runtime on top of llvm-libc.
cc @petrhosek
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxUks1u6zgMRp9G3hANbDlOnIUXTtugAYpBMR1gugtombZ0o0iGKPXn7S-cBG268oI0z8cjIrMZHVEjqq2oHjJMUfvQOKOOPTEm6wwFzjrffzXWdOrzEzsDGhmiJlAnPBL4KRrvGJ732_u3t3a7Pzz-026fHw__Pf372D68Arr-pvjUvh5eLqVD-7JfiLwVebuHqI07gonw4ZPtoSNwRhGYYUYFgg9kQHelweADJDZuBFUUEHUg7HkBe3cJhkzgB7D2_XQ35xbyHqZrFxgGhFNSGiyGkQJwCgMqAgyEEDW6794FwP8EGt_plgOcpsmHOE_tUgTnI3xRBLR2pn7_fFnthYLGaWbe-jpv8KN0dqR8T6A0upEYoofEv6nGcSTsbxFXWZrsBImh855jwGlmCbkVcgshuWhOBN5B9NMvKdd8SoFY5hPFoD3TEbK-KftNucGMmmJdrqu6yKs6081Q1esc-1ptVrXsiqHsh3JV1eV6wE2JJWamkbms8kJKWchlUS9Kuew2hPlytV4V61Ulljmd0NjFnGHhw5gZ5kRNIZd5kWcWO7J8vkUpL88274CdEVLO5xmac_gujSyWuTUc-WdUNNGeD_nbqqgebm3fusTJZCnYRsc4sShbIXdC7kYTdeoWyp-E3M2Dr5-7Kfg_pKKQu3NgFnJ3zfzeyL8BAAD__812FQE">