diff options
author | Chris Metcalf <cmetcalf@tilera.com> | 2012-12-28 11:28:08 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2012-12-28 12:13:01 -0500 |
commit | fdfc65d21f331c0f276a075e17a704183f701555 (patch) | |
tree | c03143fe85bcb88f2787891b111cbdb2b61a1567 /ports/sysdeps | |
parent | d63f73be346f4f3d4634a0b21ed211fbf0eb6f0a (diff) | |
download | glibc-fdfc65d21f331c0f276a075e17a704183f701555.tar.gz glibc-fdfc65d21f331c0f276a075e17a704183f701555.tar.xz glibc-fdfc65d21f331c0f276a075e17a704183f701555.zip |
tile: support lll_futex_timed_wait_bitset
Diffstat (limited to 'ports/sysdeps')
-rw-r--r-- | ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h b/ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h index 0e0d48ed06..448ac9e1a1 100644 --- a/ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h +++ b/ports/sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h @@ -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); \ |