Return futex value from futex atomic operations

Update the futex atomic operations to return the value of the futex
after the operation (with the exception of cmpxchg which returns the old
value). Update futex_cmpxchg() to return u_int32_t instead of futex_t to
avoid compiler warnings regarding the volatile keyword with gcc 4.2 (but
not 4.1 or 4.4 oddly enough).

Signed-off-by: Darren Hart <>
1 file changed
tree: 09d7ae511f66a90d228213147981243f0db164e3
  1. functional/
  2. include/
  3. performance/
  4. stress/
  5. .gitignore
  6. Makefile