Poco::Timer enhanced configuration

Discussion of ideas for features and new projects based on POCO.
lgm42
Posts: 11
Joined: 13 Aug 2014, 10:45

Poco::Timer enhanced configuration

Postby lgm42 » 14 Mar 2016, 11:44

I have a class that would configure timer with its callback in the ctor of my class but without starting it.
I would like to configure the callback directly in the ctor of the Timer instead of providing it in the start method.

ie:

Code: Select all

Timer(const AbstractTimerCallback& method, long startInterval = 0, long periodicInterval = 0);


and an empty start() method which could throws if callback hasn't configured yet.

Moreover, I can start and stop the timer but I can't ask the timer is it is running and if I stop it when not running, it throws.
a method isRunning() would be nice.

Thanks ;)

Return to “Wishlist”

Who is online

Users browsing this forum: No registered users and 1 guest

cron