Issue |
126559
|
Summary |
[libc][pthread] pthread_rwlock_t is linux specific
|
Labels |
libc
|
Assignees |
|
Reporter |
nickdesaulniers
|
41fecca97b77a added support for pthread_rwlock_t. Our user facing header (libc/include/llvm-libc-types/pthread_rwlock_t.h) defines this type in terms of `__futex_word`, which is perhaps linux specific (perhaps libc/include/llvm-libc-types/__futex_word.h should `#error` when `__linux__` is not defined? cc @SchrodingerZhu
I suspect this will be a problem for supporting this type on non-linux. Changing the type will probably need to update `PTHREAD_RWLOCK_INITIALIZER` in libc/include/llvm-libc-macros/pthread-macros.h.
#126314
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs