-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[events executor] - Fix Behavior with Timer Cancel (#2375)
* fix Signed-off-by: Matt Condino <mwcondino@gmail.com> * add timer cancel tests Signed-off-by: Matt Condino <mwcondino@gmail.com> * cleanup header include Signed-off-by: Matt Condino <mwcondino@gmail.com> * reverting change to timer_greater function Signed-off-by: Gus Brigantino <gusbrig97@gmail.com> * use std::optional, and handle edgecase of 1 cancelled timer Signed-off-by: Matt Condino <mwcondino@gmail.com> * clean up run_timers func Signed-off-by: Gus Brigantino <gusbrig97@gmail.com> * some fixes and added tests for cancel then reset of timers. Signed-off-by: Matt Condino <mwcondino@gmail.com> * refactor and clean up. remove cancelled timer tracking. Signed-off-by: Matt Condino <mwcondino@gmail.com> * remove unused method for size() Signed-off-by: Matt Condino <mwcondino@gmail.com> * linting Signed-off-by: Matt Condino <mwcondino@gmail.com> * relax timing constraints in tests Signed-off-by: Matt Condino <mwcondino@gmail.com> * further relax timing constraints to ensure windows tests are not flaky. Signed-off-by: Matt Condino <mwcondino@gmail.com> * use sim clock for tests, pub clock at .25 realtime rate. Signed-off-by: Matt Condino <mwcondino@gmail.com> --------- Signed-off-by: Matt Condino <mwcondino@gmail.com> Signed-off-by: Gus Brigantino <gusbrig97@gmail.com> Co-authored-by: Gus Brigantino <gusbrig97@gmail.com>
- Loading branch information
1 parent
265f5ec
commit 99f0fc9
Showing
5 changed files
with
468 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.