1 #ifndef BLUB_CORE_DEADLINETIMER_HPP
2 #define BLUB_CORE_DEADLINETIMER_HPP
4 #include "blub/async/predecl.hpp"
5 #include "blub/core/globals.hpp"
7 #include <boost/asio/deadline_timer.hpp>
21 template<
typename CompletionHandler>
22 void addToDoOnTimeoutMilli(CompletionHandler handler,
const uint32& milli)
24 m_timer.expires_from_now(boost::posix_time::millisec(milli));
25 m_timer.async_wait(handler);
35 boost::asio::deadline_timer m_timer;
44 #endif // BLUB_CORE_DEADLINETIMER_HPP
Definition: deadlineTimer.hpp:16
Definition: dispatcher.hpp:29
Definition: deadlineTimer.hpp:10