From d906fa3118c888227d858b6d642a09e055eca2b4 Mon Sep 17 00:00:00 2001 From: Jens Gustedt Date: Sat, 24 Jun 2017 10:18:05 +0200 Subject: 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. --- src/thread/__timedwait.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/thread/__timedwait.c') 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; -- cgit v1.2.1