Use CLOCK_MONOTONIC for condition variables used by pthread_cond_timedwait()
authorBart Van Assche <bvanassche@acm.org>
Wed, 1 Jan 2020 00:23:32 +0000 (16:23 -0800)
committerBart Van Assche <bvanassche@acm.org>
Thu, 2 Jan 2020 04:16:00 +0000 (20:16 -0800)
commit78b66d32c2952d13d1ba73a2e2c15739585535a9
treeca45935eee7b15bf381ed52ac5645484c3fa7226
parent5ad80fa7cf5be0399c8d9d68967781e56a767c82
Use CLOCK_MONOTONIC for condition variables used by pthread_cond_timedwait()

This patch ensures that the time during which pthread_cond_timedwait()
waits is not affected by wall clock adjustments by e.g. ntpd.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
configure
fio_sem.c
helper_thread.c
idletime.c
pshared.c
t/read-to-pipe-async.c