Skip to content
Commit 99f841c4 authored by Florian Weimer's avatar Florian Weimer
Browse files

nptl: pthread_mutex_lock, pthread_mutex_unock single-threaded optimization



This is optimization is similar in spirit to the SINGLE_THREAD_P check
in the malloc implementation.  Doing this in generic code allows us
to prioritize those cases which are likely to occur in single-threaded
programs (normal and recursive mutexes).

Reviewed-by: default avatarAdhemerval Zanella <adhemerval.zanella@linaro.org>
parent eda0c098
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment