summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-03-06 20:06:31 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-06 20:06:31 +0000
commit1344c034c537f5335b44eae69715b07c1f94d555 (patch)
treee9a27ddfc88d59a8397453a8913c38be6be7bcf6 /libs/hwui/renderthread/RenderProxy.cpp
parenta38d289d8ae6bc6a2b526a03dbe82f8a9d655bfc (diff)
parentc2dcebe6e631f499d75c57bfe24eccbb0129c863 (diff)
Merge "Check for spurious wake ups" am: 3a3cd0a27f
am: c2dcebe6e6 Change-Id: I6777a0845cbfbef3681e3f3779779c83001c0456
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;
}