1 #ifndef ASYNC_STRAND_HPP
2 #define ASYNC_STRAND_HPP
4 #include "blub/async/predecl.hpp"
5 #include "blub/core/globals.hpp"
7 #include <boost/asio/strand.hpp>
21 template<
typename CompletionHandler>
22 void dispatch(CompletionHandler handler)
24 m_service.dispatch(handler);
27 template<
typename CompletionHandler>
28 void post(CompletionHandler handler)
30 m_service.post(handler);
33 bool isRunningInThisThread()
const
35 return m_service.running_in_this_thread();
43 boost::asio::strand m_service;
52 #endif // ASYNC_STRAND_HPP
Definition: strand.hpp:16
Definition: dispatcher.hpp:29
Definition: deadlineTimer.hpp:10