[PATCH] PowerPC - Add a faster way to get the thread id
Roland McGrath
roland@hack.frob.com
Sat Nov 10 01:07:00 GMT 2012
> So I agree that it should not have be a PPC specific API and it is not a
> POSIX API, but GLIBC provides other non-POSIX API and I don't understnad
> why it would be hard to convince the community to add such simple and
> obviously useful API.
The core issue is that it is a Linux-centric API that intrinsically depends
on implementation details that are below the level of the pthreads API.
It's a pure Linuxism that there is an integer that is unique system-wide
that corresponds to an individual thread in an individual process. This is
the GNU C Library, not the Linux C Library, and we try to be quite
circumspect about introducing Linuxisms to the GNU system API.
More information about the Libc-alpha
mailing list