about summary refs log tree commit diff
path: root/src/thread/__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/__timedwait.c
parent60ab365cae24063b0f21821860ca16fb63e81f81 (diff)
downloadmusl-d906fa3118c888227d858b6d642a09e055eca2b4.tar.gz
musl-d906fa3118c888227d858b6d642a09e055eca2b4.tar.xz
musl-d906fa3118c888227d858b6d642a09e055eca2b4.zip
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/__timedwait.c')
-rw-r--r--src/thread/__timedwait.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/__timedwait.c b/src/thread/__timedwait.c
index 13d8465a..d2079c88 100644
--- a/src/thread/__timedwait.c
+++ b/src/thread/__timedwait.c
@@ -14,7 +14,7 @@ int __timedwait_cp(volatile int *addr, int val,
 	int r;
 	struct timespec to, *top=0;
 
-	if (priv) priv = 128;
+	if (priv) priv = FUTEX_PRIVATE;
 
 	if (at) {
 		if (at->tv_nsec >= 1000000000UL) return EINVAL;