tile: support lll_futex_timed_wait_bitset

This commit is contained in:
Chris Metcalf 2012-12-28 11:28:08 -05:00
parent d63f73be34
commit fdfc65d21f
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2012-12-28 Chris Metcalf <cmetcalf@tilera.com>
* sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h
(lll_futex_timed_wait_bitset): New macro.
2012-12-14 Chris Metcalf <cmetcalf@tilera.com>
* sysdeps/unix/sysv/linux/tile/nptl/clone.S: Fix DWARF info.

View File

@ -86,6 +86,19 @@
(val), (timespec)); \
})
#define lll_futex_timed_wait_bitset(futexp, val, timespec, clockbit, private) \
({ \
INTERNAL_SYSCALL_DECL (__err); \
long int __ret; \
int __op = FUTEX_WAIT_BITSET | clockbit; \
\
__ret = INTERNAL_SYSCALL (futex, __err, 6, (futexp), \
__lll_private_flag (__op, private), \
(val), (timespec), NULL /* Unused. */, \
FUTEX_BITSET_MATCH_ANY); \
__ret; \
})
#define lll_futex_wake(futexp, nr, private) \
({ \
INTERNAL_SYSCALL_DECL (__err); \