optimize pthread initialization
authorRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 01:21:23 +0000 (20:21 -0500)
committerRich Felker <dalias@aerifal.cx>
Thu, 10 Mar 2011 01:21:23 +0000 (20:21 -0500)
commit6dc05fbe198ccb326dceb8f05ee943f9a4dfb4ba
tree208a7b8da2bd16000f4b1d7343a91cf267dda055
parent0bed7e0acfd34e3fb63ca0e4d99b7592571355a9
optimize pthread initialization

the set_tid_address returns the tid (which is also the pid when called
from the initial thread) so there is no need to make a separate
syscall to get pid/tid.
src/thread/pthread_self.c