[libc-commits] [libc] [libc] Add an extension macro to get numerical thread id (PR #195202)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Wed May 6 01:58:50 PDT 2026


petrhosek wrote:

I'm becoming convinced we should define `__thrd_id_t` and `__pthread_id_t` types and and make `__thrd_get_id()` and `__pthread_get_id()` (inline) functions so the return type is explicit which would at least give us the flexibility to evolve the internal representation if needed.

https://github.com/llvm/llvm-project/pull/195202


More information about the libc-commits mailing list