Lines Matching full:executor
2 // impl/executor.hpp
25 #include <boost/asio/executor.hpp>
35 // Default polymorphic executor implementation.
36 template <typename Executor, typename Allocator>
37 class executor::impl
38 : public executor::impl_base
43 static impl_base* create(const Executor& e, Allocator a = Allocator()) in create()
51 impl(const Executor& e, const Allocator& a) BOOST_ASIO_NOEXCEPT in impl()
108 return type_id<Executor>(); in target_type()
127 return executor_ == *static_cast<const Executor*>(e->target()); in equals()
132 Executor executor_;
159 // Polymorphic executor specialisation for system_executor.
161 class executor::impl<system_executor, Allocator>
162 : public executor::impl_base
242 template <typename Executor>
243 executor::executor(Executor e) in executor() function in boost::asio::executor
244 : impl_(impl<Executor, std::allocator<void> >::create(e)) in executor()
248 template <typename Executor, typename Allocator>
249 executor::executor(allocator_arg_t, const Allocator& a, Executor e) in executor() function in boost::asio::executor
250 : impl_(impl<Executor, Allocator>::create(e, a)) in executor()
255 void executor::dispatch(BOOST_ASIO_MOVE_ARG(Function) f, in dispatch()
266 void executor::post(BOOST_ASIO_MOVE_ARG(Function) f, in post()
273 void executor::defer(BOOST_ASIO_MOVE_ARG(Function) f, in defer()
279 template <typename Executor>
280 Executor* executor::target() BOOST_ASIO_NOEXCEPT in target()
282 return impl_ && impl_->target_type() == type_id<Executor>() in target()
283 ? static_cast<Executor*>(impl_->target()) : 0; in target()
286 template <typename Executor>
287 const Executor* executor::target() const BOOST_ASIO_NOEXCEPT in target()
289 return impl_ && impl_->target_type() == type_id<Executor>() in target()
290 ? static_cast<Executor*>(impl_->target()) : 0; in target()