llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.29k stars 12.11k forks source link

[libc][POSIX][pthreads] support non-null pthread_condattr_t* for pthread_cond_init #88582

Open nickdesaulniers opened 7 months ago

nickdesaulniers commented 7 months ago

pthread_cond_init can take a second param that's a pthread_condattr_t. I didn't handle that in the initial patch for #85282 because of #88581. Once #88581 is fixed, this should be revisited.

llvmbot commented 7 months ago

@llvm/issue-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

[pthread_cond_init](https://pubs.opengroup.org/onlinepubs/7908799/xsh/pthread_cond_destroy.html) can take a second param that's a pthread_condattr_t. I didn't handle that in the initial patch for #85282 because of #88581. Once #88581 is fixed, this should be revisited.