mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
Add FUTEX_*_REQUEUE_PI support for Alpha.
This commit is contained in:
parent
ccdef322b8
commit
97ccb9d55a
@ -1,3 +1,13 @@
|
||||
2013-02-19 Richard Henderson <rth@redhat.com>
|
||||
|
||||
[BZ #14920]
|
||||
* sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
|
||||
(FUTEX_WAIT_REQUEUE_PI): Define.
|
||||
(FUTEX_CMP_REQUEUE_PI): Likewise.
|
||||
(lll_futex_wait_requeue_pi): Likewise.
|
||||
(lll_futex_timed_wait_requeue_pi): Likewise.
|
||||
(lll_futex_cmp_requeue_pi): Likewise.
|
||||
|
||||
2013-02-20 Richard Henderson <rth@redhat.com>
|
||||
|
||||
* sysdeps/unix/alpha/sysdep.h: Include <errno.h>.
|
||||
|
@ -38,6 +38,8 @@
|
||||
#define FUTEX_TRYLOCK_PI 8
|
||||
#define FUTEX_WAIT_BITSET 9
|
||||
#define FUTEX_WAKE_BITSET 10
|
||||
#define FUTEX_WAIT_REQUEUE_PI 11
|
||||
#define FUTEX_CMP_REQUEUE_PI 12
|
||||
#define FUTEX_PRIVATE_FLAG 128
|
||||
#define FUTEX_CLOCK_REALTIME 256
|
||||
|
||||
@ -143,8 +145,31 @@
|
||||
INTERNAL_SYSCALL_ERROR_P (__ret, __err); \
|
||||
})
|
||||
|
||||
/* Priority Inheritance support. */
|
||||
#define lll_futex_wait_requeue_pi(futexp, val, mutex, private) \
|
||||
lll_futex_timed_wait_requeue_pi (futexp, val, NULL, 0, mutex, private)
|
||||
|
||||
#define lll_futex_timed_wait_requeue_pi(futexp, val, timespec, clockbit, \
|
||||
mutex, private) \
|
||||
({ \
|
||||
INTERNAL_SYSCALL_DECL (__err); \
|
||||
int __op = FUTEX_WAIT_REQUEUE_PI | clockbit; \
|
||||
\
|
||||
INTERNAL_SYSCALL (futex, __err, 5, (futexp), \
|
||||
__lll_private_flag (__op, private), \
|
||||
(val), (timespec), mutex); \
|
||||
})
|
||||
|
||||
#define lll_futex_cmp_requeue_pi(futexp, nr_wake, nr_move, mutex, val, priv) \
|
||||
({ \
|
||||
INTERNAL_SYSCALL_DECL (__err); \
|
||||
long int __ret; \
|
||||
\
|
||||
__ret = INTERNAL_SYSCALL (futex, __err, 6, (futexp), \
|
||||
__lll_private_flag (FUTEX_CMP_REQUEUE_PI, priv),\
|
||||
(nr_wake), (nr_move), (mutex), (val)); \
|
||||
INTERNAL_SYSCALL_ERROR_P (__ret, __err); \
|
||||
})
|
||||
|
||||
static inline int __attribute__((always_inline))
|
||||
__lll_trylock(int *futex)
|
||||
|
Loading…
Reference in New Issue
Block a user