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>
1 file changed
tree: 592b09e56e098f0e0626067bf74b41723d0a20e3
  1. camera/