summaryrefslogtreecommitdiff
path: root/libs/hwui/renderthread/RenderTask.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2017-02-28 14:07:09 -0800
committerTom Cherry <tomcherry@google.com>2017-02-28 14:19:44 -0800
commit298a146754e35cbc650aa991ebff1a41eefdbe80 (patch)
tree8c1c847d9c42f13460e3d09e84435f9d4ce2195e /libs/hwui/renderthread/RenderTask.cpp
parent3e64003641c376573f4809aae79febd0187be81e (diff)
Check for spurious wake ups
Condition::wait() can spuriously wake up, so we must guard it with another check to ensure that a given wake was truly due to having been signaled. Bug: 34592766 Test: Boot bullhead Change-Id: Iaa5a0ca6186aea50c51e2c402ef95d7ba861be92
Diffstat (limited to 'libs/hwui/renderthread/RenderTask.cpp')
-rw-r--r--libs/hwui/renderthread/RenderTask.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderTask.cpp b/libs/hwui/renderthread/RenderTask.cpp
index b14f580791c5..928a4ef7fb53 100644
--- a/libs/hwui/renderthread/RenderTask.cpp
+++ b/libs/hwui/renderthread/RenderTask.cpp
@@ -26,6 +26,7 @@ namespace renderthread {
void SignalingRenderTask::run() {
mTask->run();
mLock->lock();
+ mHasRun = true;
mSignal->signal();
mLock->unlock();
}