mutex: don't attempt to use CLOCK_MONOTONIC
authorJens Axboe <axboe@kernel.dk>
Mon, 20 Feb 2012 08:18:43 +0000 (09:18 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Feb 2012 08:18:43 +0000 (09:18 +0100)
commitb11e4ccf7b3d24e8e1d0a779aa6735bbce85b291
treea032ef6e190d7b5826967ffc5934f6f1aa93ce7d
parent649c10c59b016ae8586e54746d3761bc6df33c9b
mutex: don't attempt to use CLOCK_MONOTONIC

It's a bit of a mess. Some platforms don't have
pthread_condattr_setclock(), some have it but it appears NOT to set
the block correctly.

Accept that we have to use the realtime clock for timed mutex and just
don't touch the clock settings.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
mutex.c
os/os-aix.h
os/os-freebsd.h
os/os-linux.h