summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-03-06 19:25:58 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-06 19:25:59 +0000
commit3a3cd0a27f98a360fad69030eedacd0d863586b4 (patch)
treefd6386cc0a639d0bdd7f55ca3e5d911d7303287a /libs/hwui/renderthread/RenderProxy.cpp
parent8871623b8d8f9f648b9aeb280af94391ab343c73 (diff)
parent298a146754e35cbc650aa991ebff1a41eefdbe80 (diff)
Merge "Check for spurious wake ups"
Diffstat (limited to 'libs/hwui/renderthread/RenderProxy.cpp')
-rw-r--r--libs/hwui/renderthread/RenderProxy.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.cpp b/libs/hwui/renderthread/RenderProxy.cpp
index a734401a2be6..ce13ebc5e054 100644
--- a/libs/hwui/renderthread/RenderProxy.cpp
+++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -685,7 +685,9 @@ void* RenderProxy::postAndWait(MethodInvokeRenderTask* task) {
SignalingRenderTask syncTask(task, &mSyncMutex, &mSyncCondition);
AutoMutex _lock(mSyncMutex);
mRenderThread.queue(&syncTask);
- mSyncCondition.wait(mSyncMutex);
+ while (!syncTask.hasRun()) {
+ mSyncCondition.wait(mSyncMutex);
+ }
return retval;
}