gthread: Use pthread_cond_timedwait_monotonic() if available
authorSebastian Dröge <slomo@circular-chaos.org>
Thu, 4 Jul 2013 08:27:02 +0000 (10:27 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Thu, 4 Jul 2013 08:41:59 +0000 (10:41 +0200)
commitdbdfcb69ce4a7f14bac784c2684c1a66bfe6a2c9
treef89a0dfd7f0e7675ad269418e1146a52e718b56f
parenta4c352cd99738095ba34e04a86a2ffa9cc659cfe
gthread: Use pthread_cond_timedwait_monotonic() if available

Otherwise we have to rely on pthread_cond_timedwait() actually using
the monotonic clock, which might be true or not. On Android at least
it is using the realtime clock, no pthread_condattr_setclock() is available
but instead pthread_cond_timedwait_monotonic() can be used.
configure.ac
glib/gthread-posix.c