10 #include <boost/asio.hpp>
11 #include <boost/any.hpp>
12 #include <boost/thread/thread.hpp>
17 typedef boost::shared_ptr<boost::asio::io_service::work>
workPtr;
37 template <
typename TYPE>
43 return value.empty() ? TYPE() : boost::any_cast<TYPE>(
value);
67 template <
typename FUNC>
71 io_service.post(boost::bind(&ThreadPool::execute<FUNC>,
this, func, future));
77 template <
typename FUNC>