[libc-commits] [libc] [libc] Add an extension macro to get numerical thread id (PR #195202)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Fri May 1 09:55:34 PDT 2026
SchrodingerZhu wrote:
> Do you mean adding logic in libc++ that would implement necessary comparisons based on std::is_pointer<pthread_t> / std::is_integral<pthread_t>?
No, I am think of changing libcpp to dispatch pthread_t to existing comparison routine or bytewise comparison based on the traits. While that will bring more complexities, it seems to allow libcxx to support also semiregular unique-represented thread IDs.
https://github.com/llvm/llvm-project/pull/195202
More information about the libc-commits
mailing list