summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-03-06 19:57:18 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-06 19:57:18 +0000
commitc2dcebe6e631f499d75c57bfe24eccbb0129c863 (patch)
tree9ad20416b36b4b248442ceb44bccfcbaad38932b /libs/hwui/renderthread/RenderProxy.cpp
parent4ddee9722dd47060570b11a7ae9f4c20358fc079 (diff)
parent3a3cd0a27f98a360fad69030eedacd0d863586b4 (diff)
Merge "Check for spurious wake ups"
am: 3a3cd0a27f Change-Id: Ia445070278f5a80c85b48e06ddf614d462db45af
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;
}