diff options
author | Patrick Rohr <prohr@google.com> | 2021-11-25 12:06:02 +0100 |
---|---|---|
committer | Patrick Rohr <prohr@google.com> | 2021-11-29 19:02:12 +0100 |
commit | 892366fe60043b4a8e2a9bfac95f4d7de231202a (patch) | |
tree | 13ff58d8ba90ebf74ea3c03f6046d0cb4fa23904 /identity/support/src/cppbor_parse.cpp | |
parent | 0b85b97213584397490edb85baf0c17eb4c1bab9 (diff) |
fix tuner filter callback scheduler
This fixes multiple issues in filter callback scheduler:
- currently, when mDataSizeDelayInBytes is 0, filter events are sent
every time onFilterEvent is called. When mTimeDelayInMs is set (to
something else than 0), this will falsely override the time delay.
- when datasize delay or time delays are updated, the cv needs to be
notified so the new delay goes into effect right away.
- std::condition_variables *must* make use of a shared variable in order
to prevent lost and spurious wakeups.
Test: atest VtsHalTvTunerTargetTest
Bug: 183057734
Change-Id: I9fb4e87e8ba887f0ce891ccb9981bfa49a3ceada
Diffstat (limited to 'identity/support/src/cppbor_parse.cpp')
0 files changed, 0 insertions, 0 deletions