Bug 18121 - Use a monotonic clock for pthread timeouts
authorColin Walters <walters@verbum.org>
Sat, 11 Jul 2009 02:27:55 +0000 (22:27 -0400)
committerColin Walters <walters@verbum.org>
Tue, 14 Jul 2009 19:40:24 +0000 (15:40 -0400)
commit2e286c8a27f30a5eb4933a84754e1c8059ec3805
tree2b6dfefeeae7c3ef5a31aba71bcf95f133e72877
parent943b9d3944a507d106613dbf3fa678c6a0bcbade
Bug 18121 - Use a monotonic clock for pthread timeouts

Patch based on one from Keith Mok <ek9852@gmail.com>, some
followup work from Janne Karhunen <Janne.Karhunen@gmail.com>.

We don't want condition variable timeouts to be affected by the system clock.
Use the POSIX CLOCK_MONOTONIC if available.
(cherry picked from commit ae24bb35e2ee3ecde990f55852982b573754ec43)
configure.in
dbus/dbus-sysdeps-pthread.c