-
-
Notifications
You must be signed in to change notification settings - Fork 478
#871 - Added callbacks when a timer is inserted or removed #1155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
7c88a15 to
0960c2b
Compare
include/etl/callback_timer.h
Outdated
| ETL_DISABLE_TIMER_UPDATES; | ||
| active_list.remove(timer.id, false); | ||
| remove_callback.call_if(timer.id); | ||
| remove_callback.call_if(timer.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two calls to the callback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, Fixed, (some) Unit tests added
0960c2b to
cbf0611
Compare
|
Shall I not merge this until you have added all of the unit tests? |
I added a couple of tests, to different types of timers. Let me know if there is some timer type missing and if you would like to see more unit tests |
|
The unit tests for |
5f70bef
into
ETLCPP:pull-request/#1155-Added-callbacks-when-a-timer-is-inserted-or-removed
…rted-or-removed' of https://github.com/ETLCPP/etl into pull-request/#1155-Added-callbacks-when-a-timer-is-inserted-or-removed # Conflicts: # test/vs2022/etl.vcxproj.filters
…rted-or-removed' of https://github.com/ETLCPP/etl into pull-request/#1155-Added-callbacks-when-a-timer-is-inserted-or-removed
Implements #871
unit tests are missing