Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
alpha: Add lll_futex_timed_wait_bitset
  • Loading branch information
Richard Henderson committed Jan 2, 2013
1 parent 0f5477a commit caed4e9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ports/ChangeLog.alpha
@@ -1,3 +1,8 @@
2013-01-02 Richard Henderson <rth@redhat.com>

* sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
(lll_futex_timed_wait_bitset): New.

2013-01-01 Joseph Myers <joseph@codesourcery.com>

* sysdeps/unix/sysv/linux/alpha/bits/termios.h: Reformat copyright
Expand Down
13 changes: 13 additions & 0 deletions ports/sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h
Expand Up @@ -78,6 +78,19 @@
#define lll_futex_wait(futexp, val, private) \
lll_futex_timed_wait (futexp, val, NULL, private)

#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_timed_wait(futexp, val, timespec, private) \
({ \
INTERNAL_SYSCALL_DECL (__err); \
Expand Down

0 comments on commit caed4e9

Please sign in to comment.