Is there a good lightweight multiplatform C++ timer queue?

c++, queue, timer

Solution

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

Problem

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.

Original source