C++ – good lightweight multiplatform C++ timer queue


What I'm looking for is a simple timer queue possibly with an external timing source and a poll method (in this way it will be multi-platform). Each enqueued message could be an object implementing a simple interface with a virtual onTimer() member function.

Best Solution

Boost::ASIO contains an asynchronous timer implementation. That might work for you.