diff options
author | Jens Gustedt <Jens.Gustedt@inria.fr> | 2017-06-24 10:18:05 +0200 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2017-07-04 17:12:52 -0400 |
commit | d906fa3118c888227d858b6d642a09e055eca2b4 (patch) | |
tree | 9448107ecf485b113c32ac676a482c2c8891d08e /src/internal | |
parent | 60ab365cae24063b0f21821860ca16fb63e81f81 (diff) | |
download | musl-d906fa3118c888227d858b6d642a09e055eca2b4.tar.gz musl-d906fa3118c888227d858b6d642a09e055eca2b4.tar.bz2 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/internal')
-rw-r--r-- | src/internal/pthread_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/pthread_impl.h b/src/internal/pthread_impl.h index ae0ab1c5..56e19348 100644 --- a/src/internal/pthread_impl.h +++ b/src/internal/pthread_impl.h @@ -131,7 +131,7 @@ int __timedwait_cp(volatile int *, int, clockid_t, const struct timespec *, int) void __wait(volatile int *, volatile int *, int, int); static inline void __wake(volatile void *addr, int cnt, int priv) { - if (priv) priv = 128; + if (priv) priv = FUTEX_PRIVATE; if (cnt<0) cnt = INT_MAX; __syscall(SYS_futex, addr, FUTEX_WAKE|priv, cnt) != -ENOSYS || __syscall(SYS_futex, addr, FUTEX_WAKE, cnt); |