summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Neill Kapron <nkapron@google.com> 2024-07-25 01:52:22 +0000
committer Neill Kapron <nkapron@google.com> 2024-07-25 01:58:31 +0000
commit543eee65cb7fb05ec46c5948e233d05e9eb78889 (patch)
treec6e9291b476c9cb7186e43457d337c43d808dc34 /libs/gui/ConsumerBase.cpp
parentb310760b09dccdccb76683a79b3cb2b88f0bbddc (diff)
libtimeinstate: fix potential optimized variable
Per discussion at aosp/3077312/comment/38f6fa69_f6dee70c, the compiler may optimize out the busy loop. Change to a volatile variable and initialize to 1 so the *0 calc will not be optimized away. Test: treehugger Change-Id: Ic650b5c1b5ca9dcc1ed5817973f9ab831d944c99 Signed-off-by: Neill Kapron <nkapron@google.com>
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions