-
Notifications
You must be signed in to change notification settings - Fork 543
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
Set timer only when interval changes. Not in each firing of the timer. #945
Conversation
|
If you see that as a solid benefit, we should for one shot timer, instead of periodic one. That way upon firing, you complete the task and start the next timer run. |
@renukamanavalan , can you add more descriptions in the pr? |
what if the interval changed, how to you reset the timer interval? |
CRMOrch stops & starts the time in each call to doTask. No other Orch client that uses SelectableTimer does that. Fix: Remove the redundant restart. If it is intended that we restart the timer upon each firing, then we should not go for periodic timer, and instead call one shot timer. Upon getting called, do the task and start the next one shot timer. |
BTW, this is not a fix for any issue/bug. I just happened to notice, while analyzing SelectableTimer::readData failure. |
does this cause readdata failure? |
Nope! By theory, it should not. |
We requested some similar change in watermarkorch #781 |
* Add watchdogutil to control the hw watchdog * fix LGTM * Fixed based on review comments * replace the is_armed() and get_remaining_time to status() subcommand * syntax error * Add more info to the output * re-format of output * remove spaces * change the version number of watchdogutil * Change the output parsing for the watchdog arm case * typo * fix more review comments
To satisfy LGTM alert and for performance reasons to skip making unnecessary copy of struct.
What I did
Why I did it
How I verified it
Details if related