(lll_futex_requeue, lll_futex_wake_unlock): Add private argument, use

__lll_private_flag macro.
This commit is contained in:
Ulrich Drepper 2007-08-11 18:47:31 +00:00
parent 1bf120f61e
commit 78727e1194

View File

@ -103,24 +103,24 @@
while (0) while (0)
/* Returns non-zero if error happened, zero if success. */ /* Returns non-zero if error happened, zero if success. */
#define lll_futex_requeue(futexp, nr_wake, nr_move, mutex, val) \ #define lll_futex_requeue(futexp, nr_wake, nr_move, mutex, val, private) \
({ \ ({ \
INTERNAL_SYSCALL_DECL (__err); \ INTERNAL_SYSCALL_DECL (__err); \
long int __ret; \ long int __ret; \
__ret = INTERNAL_SYSCALL (futex, __err, 6, \ __ret = INTERNAL_SYSCALL (futex, __err, 6, (futexp), \
(futexp), FUTEX_CMP_REQUEUE, (nr_wake), \ __lll_private_flag (FUTEX_CMP_REQUEUE, private),\
(nr_move), (mutex), (val)); \ (nr_wake), (nr_move), (mutex), (val)); \
INTERNAL_SYSCALL_ERROR_P (__ret, __err); \ INTERNAL_SYSCALL_ERROR_P (__ret, __err); \
}) })
/* Returns non-zero if error happened, zero if success. */ /* Returns non-zero if error happened, zero if success. */
#define lll_futex_wake_unlock(futexp, nr_wake, nr_wake2, futexp2) \ #define lll_futex_wake_unlock(futexp, nr_wake, nr_wake2, futexp2, private) \
({ \ ({ \
INTERNAL_SYSCALL_DECL (__err); \ INTERNAL_SYSCALL_DECL (__err); \
long int __ret; \ long int __ret; \
__ret = INTERNAL_SYSCALL (futex, __err, 6, \ __ret = INTERNAL_SYSCALL (futex, __err, 6, (futexp), \
(futexp), FUTEX_WAKE_OP, (nr_wake), \ __lll_private_flag (FUTEX_WAKE_OP, private), \
(nr_wake2), (futexp2), \ (nr_wake), (nr_wake2), (futexp2), \
FUTEX_OP_CLEAR_WAKE_IF_GT_ONE); \ FUTEX_OP_CLEAR_WAKE_IF_GT_ONE); \
INTERNAL_SYSCALL_ERROR_P (__ret, __err); \ INTERNAL_SYSCALL_ERROR_P (__ret, __err); \
}) })