OSDN Git Service

Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.
authorYabin Cui <yabinc@google.com>
Wed, 13 Jul 2016 22:53:25 +0000 (15:53 -0700)
committerYabin Cui <yabinc@google.com>
Fri, 15 Jul 2016 01:33:23 +0000 (18:33 -0700)
commita36b574011244d0d3be9eb5bcf1062a3e365299f
treef54b823ab791153bd05e4c9831addf3db026101c
parent8fce5a6558249cd85451dee2540aaf766eb2bef9
Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.

Previous patch changed pthread_cond_timedwait_relative_np to use
CLOCK_REALTIME, which causes app compatibility problem. So change
it back to CLOCK_MONOTONIC.

Bug: 30106240
Change-Id: I8e04058e92ede098f4f9f8d133f094001921441e
(cherry picked from commit fe4a4d8f67cf84b0b10d6c689f356229e057603b)
libc/bionic/pthread_cond.cpp