1 // Copyright (C) 2014 Ian Forbed
2 // Copyright (C) 2014 Vicente J. Botet Escriba
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_THREAD_EXECUTORS_SCHEDULING_ADAPTOR_HPP
9 #define BOOST_THREAD_EXECUTORS_SCHEDULING_ADAPTOR_HPP
11 #include <boost/thread/executors/detail/scheduled_executor_base.hpp>
18 template <typename Executor>
19 class scheduling_adpator : public detail::scheduled_executor_base<>
26 scheduling_adpator(Executor& ex)
29 _scheduler(&super::loop, this) {}
37 Executor& underlying_executor()
43 typedef detail::scheduled_executor_base<> super;
48 using executors::scheduling_adpator;