commit | 794f861b416feeebf5c278bd80ee3b58f262bb51 | [log] [tgz] |
---|---|---|
author | Iliyan Malchev <malchev@google.com> | Mon Oct 15 14:09:12 2012 -0700 |
committer | The Android Automerger <android-build@android.com> | Tue Oct 16 11:28:46 2012 -0700 |
tree | 592b09e56e098f0e0626067bf74b41723d0a20e3 | |
parent | 6c4b5d0e0c8d9a09030d5d308ae620e9e84cda0e [diff] |
use pthread_cond_timedwait() in poll thread This does not fix the underlying causes for the hangs in HDR mode, but should allow the HAL to recover in case of that failure, by replacing the pthread_cond_wait()s with pthread_cond_timedwait()s that timed out after 2 seconds. Bug: 7305012 Bug: 7301582 Change-Id: I213f52755a0157bec413d19a14d8a1340de14ae0 Signed-off-by: Iliyan Malchev <malchev@google.com>