Skip to content

Conversation

@KammutierSpule
Copy link
Contributor

Implements #871

unit tests are missing

ETL_DISABLE_TIMER_UPDATES;
active_list.remove(timer.id, false);
remove_callback.call_if(timer.id);
remove_callback.call_if(timer.id);
Copy link
Contributor

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?

Copy link
Contributor Author

@KammutierSpule KammutierSpule Jul 24, 2025

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

@KammutierSpule KammutierSpule force-pushed the feature/871-callbacks_on_timer_functions branch from 0960c2b to cbf0611 Compare July 24, 2025 15:13
@jwellbelove jwellbelove changed the base branch from master to pull-request/#1155-Added-callbacks-when-a-timer-is-inserted-or-removed July 27, 2025 09:40
@jwellbelove
Copy link
Contributor

Shall I not merge this until you have added all of the unit tests?

@KammutierSpule
Copy link
Contributor Author

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

@jwellbelove
Copy link
Contributor

The unit tests for message_timer_interrupt and message_timer_locked need adding.

@jwellbelove jwellbelove merged commit 5f70bef into ETLCPP:pull-request/#1155-Added-callbacks-when-a-timer-is-inserted-or-removed Sep 11, 2025
82 checks passed
jwellbelove pushed a commit that referenced this pull request Sep 11, 2025
…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
jwellbelove pushed a commit that referenced this pull request Sep 11, 2025
…rted-or-removed' of https://github.com/ETLCPP/etl into pull-request/#1155-Added-callbacks-when-a-timer-is-inserted-or-removed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants