1 // (C) Copyright 2013,2014 Vicente J. Botet Escriba 2 // 3 // Distributed under the Boost Software License, Version 1.0. (See 4 // accompanying file LICENSE_1_0.txt or copy at 5 // http://www.boost.org/LICENSE_1_0.txt) 6 7 #ifndef BOOST_THREAD_EXECUTORS_WORK_HPP 8 #define BOOST_THREAD_EXECUTORS_WORK_HPP 9 10 #include <boost/thread/detail/config.hpp> 11 #if defined BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION && defined BOOST_THREAD_PROVIDES_EXECUTORS && defined BOOST_THREAD_USES_MOVE 12 13 #include <boost/thread/detail/nullary_function.hpp> 14 #include <boost/thread/csbl/functional.hpp> 15 16 namespace boost 17 { 18 namespace executors 19 { 20 typedef detail::nullary_function<void()> work; 21 22 #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES 23 typedef detail::nullary_function<void()> work_pq; 24 //typedef csbl::function<void()> work_pq; 25 #else 26 typedef csbl::function<void()> work_pq; 27 #endif 28 } 29 } // namespace boost 30 31 #endif 32 #endif // BOOST_THREAD_EXECUTORS_WORK_HPP 33