summaryrefslogtreecommitdiff
path: root/src/thread/pthread_cond_timedwait.c
diff options
context:
space:
mode:
authorJens Gustedt <Jens.Gustedt@inria.fr>2017-06-24 10:18:05 +0200
committerRich Felker <dalias@aerifal.cx>2017-07-04 17:12:52 -0400
commitd906fa3118c888227d858b6d642a09e055eca2b4 (patch)
tree9448107ecf485b113c32ac676a482c2c8891d08e /src/thread/pthread_cond_timedwait.c
parent60ab365cae24063b0f21821860ca16fb63e81f81 (diff)
downloadmusl-d906fa3118c888227d858b6d642a09e055eca2b4.tar.gz
unify the use of FUTEX_PRIVATE
The flag 1<<7 is used in several places for different purposes that are not always easy to distinguish. Mark those usages that correspond to the flag that is used by the kernel for futexes.
Diffstat (limited to 'src/thread/pthread_cond_timedwait.c')
-rw-r--r--src/thread/pthread_cond_timedwait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_cond_timedwait.c b/src/thread/pthread_cond_timedwait.c
index 3526ecfb..ed8569c2 100644
--- a/src/thread/pthread_cond_timedwait.c
+++ b/src/thread/pthread_cond_timedwait.c
@@ -54,7 +54,7 @@ static inline void unlock_requeue(volatile int *l, volatile int *r, int w)
{
a_store(l, 0);
if (w) __wake(l, 1, 1);
- else __syscall(SYS_futex, l, FUTEX_REQUEUE|128, 0, 1, r) != -ENOSYS
+ else __syscall(SYS_futex, l, FUTEX_REQUEUE|FUTEX_PRIVATE, 0, 1, r) != -ENOSYS
|| __syscall(SYS_futex, l, FUTEX_REQUEUE, 0, 1, r);
}