* pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the
commit6de79a499109333fe328c28e7ffaab2ded06b3f0
authorUlrich Drepper <drepper@redhat.com>
Fri, 12 Dec 2008 18:46:28 +0000 (12 18:46 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 12 Dec 2008 18:46:28 +0000 (12 18:46 +0000)
tree0d2bc6d9c35da418a331f10087df4e9781f68442
parent135460f45c16c6611ec9075f5ea003d58380cdeb
* pthread_mutex_lock.c (__pthread_mutex_lock): Handle only the

fast path here, for robust/PI/PP mutexes call
__pthread_mutex_lock_full.  Don't use switch, instead use a series
of ifs according to their probability.
(__pthread_mutex_lock_full): New function.
* pthread_mutex_unlock.c: Include assert.h.
(__pthread_mutex_unlock_usercnt): Handle only the
fast path here, for robust/PI/PP mutexes call
__pthread_mutex_unlock_full.  Don't use switch, instead use a series
of ifs according to their probability.
(__pthread_mutex_unlock_full): New function.
* sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c
(__pthread_mutex_lock_full): Define.
nptl/ChangeLog
nptl/pthread_mutex_lock.c
nptl/pthread_mutex_unlock.c
nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c