commit | f14c6a24114c2863bd1eec70434b14bed4f824ea | [log] [tgz] |
---|---|---|
author | Rui Qiu <ruiqiu@google.com> | Wed Jul 14 10:39:16 2021 -0700 |
committer | Rui Qiu <ruiqiu@google.com> | Fri Jul 16 12:10:37 2021 -0700 |
tree | e2830e01be2c1c5af92197331bbdbd8843c6fb79 | |
parent | f090461b071039b6dc2955e92167ca8ab12203f9 [diff] |
[DataBroker] Clean up task queue when a MetricsConfig is removed Upon removing a MetricsConfig, delete all associated tasks from the queue. This operation is thread safe and the task queue should not be updated while iterating because all the adding and polling should happen on the same worker thread. Bug: 193563449 Test: atest CarServiceUnitTest:DataBrokerUnitTest Change-Id: I1a1fe31b4591323680527b35016c1ec4958c36f2
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.