Dmitry Chagin fb6bf8bba9 Glibc was switched to the FUTEX_WAIT_BITSET op and CLOCK_REALTIME
flag has been added instead of FUTEX_WAIT to replace the FUTEX_WAIT
logic which needs to do gettimeofday() calls before the futex syscall
to convert the absolute timeout to a relative timeout.
Before this the CLOCK_MONOTONIC used by the FUTEX_WAIT_BITSET op.

When the FUTEX_CLOCK_REALTIME is specified the timeout is an absolute
time, not a relative time. Rework futex_wait to handle this.
On the side fix the futex leak in error case and remove useless
parentheses.

Properly calculate the timeout for the CLOCK_MONOTONIC case.

MFC after:	3 days
2014-05-31 14:58:53 +00:00
..
2014-04-07 20:44:00 +00:00
2014-05-31 01:00:22 +00:00
2014-03-31 16:37:41 +00:00
2014-05-30 08:22:58 +00:00
2013-11-29 20:14:26 +00:00
2014-04-17 12:22:08 +00:00
2014-02-06 13:28:06 +00:00
2014-04-30 20:52:38 +00:00
2014-04-05 22:43:18 +00:00