I am looking for some clarification into Poco::Util::Timer cancel call. I have a timer object in my program. I am scheduling certain task to repeat on a set interval. I need to change the interval based on the input. My original approach was to call timer.cancel() and timer.scheduleAtFixedRate right after with the new interval.
What I am observing is if I call to cancel nothing get's scheduled after the call. Timer doesn't execute the task that was scheduled right after the cancel call.
Looking through the sources I see that cancel just schedules a task that clears the queue. I wonder if I have some sort timing issue or cancel is not supposed to be used in this context.
I would appreciate any advice.