commit | ba5d0aed457ac93785b34193e111aa19ede73611 | [log] [tgz] |
---|---|---|
author | Zhongbo Shi <zhongbos@codeaurora.org> | Tue Mar 19 15:48:16 2019 +0800 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Tue Sep 10 02:16:04 2019 -0700 |
tree | 5db97befecc1e49d9c185f8a4a5116aa12fd6e4b | |
parent | 08072fde1d32f51bae83743c4020b9b68dbe4954 [diff] |
mm-video-v4l2: vdec: double-check the signalled variant As the mutext lock is released first in the pthread_cond_timedwait(), the signalled variant maybe changed by the main thread in some rare cases, meanwhile pthread_cond_timedwait() still returns time out. Double-check the signalled variant after pthread_cond_timedwait() so as to return 0 and to process the last cmd received during time out. Change-Id: I952e72bb37d554cb2ea8dd0ee74b43214bfce7de