summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderProxy.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-03-06 20:14:37 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-03-06 20:14:37 +0000
commit4d7094dc998b4765cb73c6ec26e61a6cc0df030f (patch)
tree8591e81826218bc34a1e2af492e0ebb3f32da2f6 /libs/hwui/renderthread/RenderProxy.cpp
parentdf2870df9ae6e5dbb7acfe3d5fd840a3317b0e66 (diff)
parent1344c034c537f5335b44eae69715b07c1f94d555 (diff)
Merge "Check for spurious wake ups" am: 3a3cd0a27f am: c2dcebe6e6
am: 1344c034c5 Change-Id: I8ffc749ab6fbd825ce238fff4ba1d12609585c04
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 f4a4773b2937..a1f1717e6b96 100644
--- a/libs/hwui/renderthread/RenderProxy.cpp
+++ b/libs/hwui/renderthread/RenderProxy.cpp
@@ -703,7 +703,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;
}