summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Lais Andrade <lsandrade@google.com> 2024-04-26 14:57:13 +0100
committer Lais Andrade <lsandrade@google.com> 2024-04-26 15:03:07 +0100
commitc8069856c3bd0286986651fc5a8e58dbfcc3e7f5 (patch)
tree455d4ea49f0167663a89d419b1427f916a07f8ce /libs/gui/ConsumerBase.cpp
parent3e48aa434d0c6a5813ea7e8e2b7b547deb1c9a36 (diff)
Fix VibratorCallbackScheduler destructor lock
The VibratorCallbackScheduler destructor joins on the scheduler thread to wait for the main loop to finish, but the conditional variable is waiting indefinitely without a predicate, which can cause it sometimes to miss the notify call from the destructor and get stuck. Adding a predicate condition fixes the VibratorCallbackSchedulerTest flakiness for the timeout "No test results." failures. Bug: 293603710 Bug: 293623689 Test: atest --rerun-until-failure 1000 VibratorCallbackSchedulerTest Change-Id: Id9501c10fe5209003d9b74b0f39f2bcf87de05c2
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions