summaryrefslogtreecommitdiffstats
path: root/src/plugins/bearer
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@theqtcompany.com>2015-02-10 16:01:22 +0100
committerYoann Lopes <yoann.lopes@theqtcompany.com>2015-02-17 13:56:49 +0000
commit921dd85c7a90bf7432d50bd9f631d065f5281d34 (patch)
tree7057434946266e7b6cd789fe2946e14fd2913b02 /src/plugins/bearer
parent8fccfef424e7d2b7a2019b1f828234145d4011df (diff)
Android: fix timed QWaitCondition::wait() on Android >= 5.0.
wait() was always returning immediately, regardless of the timeout value, due to a timespec comparison from different clock types. On Android 5.0, qt_gettime() uses the monotonic clock but the wait condition was using the real time clock. __pthread_cond_timedwait_relative() is not exported anymore in Android 5.0, we therefore fall back to pthread_cond_timedwait(). Since the monotonic clock is now available, qt_gettime returns a time based on it. The wait condition consequently needs to use the monotonic clock. Change-Id: Ie7cf909b81107edd7207c3c039b3ec1f5422303f Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'src/plugins/bearer')
0 files changed, 0 insertions, 0 deletions