The sample code looks long, but actually it\'s not so complicated :-)
What I\'m trying to do is, when a user calls EventTimer.Start(), it will execute the callba
It's not entirely clear to me what you are trying to accomplish, but there's a couple of things that are incorrect in the code you have posted.
io_service::reset()
should only be invoked after a previous invocation of io_service::run()
was stopped or ran out of work as the documentation describes.Sleep()
, the call to io_service::run()
will block as long as it has work to do.