Use pthread_cond_timedwait_monotonic on Android.

This commit is contained in:
Tobias Brunner
2009-12-23 17:03:41 +01:00
parent 01e606546c
commit b2944d71ca
3 changed files with 11 additions and 2 deletions
+5
View File
@@ -253,6 +253,11 @@ static void _wait(private_condvar_t *this, private_mutex_t *mutex)
}
}
/* use the monotonic clock based version of this function if available */
#ifdef HAVE_PTHREAD_COND_TIMEDWAIT_MONOTONIC
#define pthread_cond_timedwait pthread_cond_timedwait_monotonic
#endif
/**
* Implementation of condvar_t.timed_wait_abs.
*/