diff options
author | Matt Lee <matthewhlee@google.com> | 2023-03-02 14:24:21 -0800 |
---|---|---|
committer | Matt Lee <matthewhlee@google.com> | 2023-03-02 14:24:21 -0800 |
commit | 0b9798cf11d9eddcde7fae9cf1b4e071664d82b2 (patch) | |
tree | a3a392a1a443d592d7ec7115168943bce27d2e2e /automotive/vehicle/aidl/impl/utils/common/include/RecurrentTimer.h | |
parent | bf59bdb75c83ad30ddbd66b8f7a3846284150cb6 (diff) | |
parent | c79e56f9faf756d4b0b034df7d2bf83897c4b715 (diff) |
Merge t-qpr-2023-03
Change-Id: I2e4738c71d248997dc6d4064b157d19b430f2ff9
Diffstat (limited to 'automotive/vehicle/aidl/impl/utils/common/include/RecurrentTimer.h')
-rw-r--r-- | automotive/vehicle/aidl/impl/utils/common/include/RecurrentTimer.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/automotive/vehicle/aidl/impl/utils/common/include/RecurrentTimer.h b/automotive/vehicle/aidl/impl/utils/common/include/RecurrentTimer.h index 5f0f7161c2..cd2b72713c 100644 --- a/automotive/vehicle/aidl/impl/utils/common/include/RecurrentTimer.h +++ b/automotive/vehicle/aidl/impl/utils/common/include/RecurrentTimer.h @@ -83,8 +83,9 @@ class RecurrentTimer final { // each time we might introduce outdated elements to the top. We must make sure the heap is // always valid from the top. void removeInvalidCallbackLocked() REQUIRES(mLock); - // Pops the next closest callback (must be valid) from the heap. - std::unique_ptr<CallbackInfo> popNextCallbackLocked() REQUIRES(mLock); + // Gets the next calblack to run (must be valid) from the heap, update its nextTime and put + // it back to the heap. + std::shared_ptr<Callback> getNextCallbackLocked(int64_t now) REQUIRES(mLock); }; } // namespace vehicle |