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>
13 #if defined(BOOST_MSVC)
14 # pragma warning(push)
15 # pragma warning(disable: 4355) // 'this' : used in base member initializer list
23 template <typename Executor>
24 class scheduling_adaptor : public detail::scheduled_executor_base<>
31 scheduling_adaptor(Executor& ex)
34 _scheduler(&super::loop, this) {}
39 _scheduler.interrupt();
43 Executor& underlying_executor()
49 typedef detail::scheduled_executor_base<> super;
54 using executors::scheduling_adaptor;
58 #if defined(BOOST_MSVC)