diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-10-17 14:30:16 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-10-17 14:30:16 -0700 |
commit | 184ee94010786a9e0952aff3af39eba1d72287d3 (patch) | |
tree | b7f4a680b4340f565951a599a6d86f88e61a1711 /nptl/pthread_mutex_timedlock.c | |
parent | 327ae2570744dabf7f065a6b529d16cc22438603 (diff) | |
download | glibc-184ee94010786a9e0952aff3af39eba1d72287d3.tar.gz glibc-184ee94010786a9e0952aff3af39eba1d72287d3.tar.xz glibc-184ee94010786a9e0952aff3af39eba1d72287d3.zip |
NPTL: Conditionalize direct futex syscall uses.
Diffstat (limited to 'nptl/pthread_mutex_timedlock.c')
-rw-r--r-- | nptl/pthread_mutex_timedlock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nptl/pthread_mutex_timedlock.c b/nptl/pthread_mutex_timedlock.c index 57644c3365..a840f8eb6d 100644 --- a/nptl/pthread_mutex_timedlock.c +++ b/nptl/pthread_mutex_timedlock.c @@ -230,6 +230,10 @@ pthread_mutex_timedlock (mutex, abstime) THREAD_SETMEM (THREAD_SELF, robust_head.list_op_pending, NULL); break; + /* The PI support requires the Linux futex system call. If that's not + available, pthread_mutex_init should never have allowed the type to + be set. So it will get the default case for an invalid type. */ +#ifdef __NR_futex case PTHREAD_MUTEX_PI_RECURSIVE_NP: case PTHREAD_MUTEX_PI_ERRORCHECK_NP: case PTHREAD_MUTEX_PI_NORMAL_NP: @@ -382,6 +386,7 @@ pthread_mutex_timedlock (mutex, abstime) } } break; +#endif /* __NR_futex. */ case PTHREAD_MUTEX_PP_RECURSIVE_NP: case PTHREAD_MUTEX_PP_ERRORCHECK_NP: |