replace all remaining internal uses of pthread_self with __pthread_self
authorRich Felker <dalias@aerifal.cx>
Tue, 10 Jun 2014 08:02:40 +0000 (04:02 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 10 Jun 2014 08:02:40 +0000 (04:02 -0400)
commitdf15168cf8baf34fb9c94e19eaa1a5c79c853970
tree83a61274604cb4b4ed65e617d03d687666cb84c3
parent64e32287f9d8a84217834bcc3387e9431cad9e4c
replace all remaining internal uses of pthread_self with __pthread_self

prior to version 1.1.0, the difference between pthread_self (the
public function) and __pthread_self (the internal macro or inline
function) was that the former would lazily initialize the thread
pointer if it was not already initialized, whereas the latter would
crash in this case. since lazy initialization is no longer supported,
use of pthread_self no longer makes sense; it simply generates larger,
slower code.
src/locale/uselocale.c
src/stdio/ftrylockfile.c
src/thread/cancel_impl.c
src/thread/pthread_cond_broadcast.c
src/thread/pthread_cond_timedwait.c
src/thread/pthread_create.c
src/thread/pthread_mutex_consistent.c
src/thread/pthread_mutex_timedlock.c
src/thread/pthread_mutex_trylock.c
src/thread/pthread_mutex_unlock.c
src/thread/pthread_setcanceltype.c