| 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 | #include <boost/thread/detail/nullary_function.hpp> |
| 12 | #include <boost/thread/csbl/functional.hpp> |
| 13 | |
| 14 | namespace boost |
| 15 | { |
| 16 | namespace executors |
| 17 | { |
| 18 | typedef detail::nullary_function<void()> work; |
| 19 | |
| 20 | #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES |
| 21 | typedef detail::nullary_function<void()> work_pq; |
| 22 | //typedef csbl::function<void()> work_pq; |
| 23 | #else |
| 24 | typedef csbl::function<void()> work_pq; |
| 25 | #endif |
| 26 | } |
| 27 | } // namespace boost |
| 28 | |
| 29 | |
| 30 | #endif // BOOST_THREAD_EXECUTORS_WORK_HPP |
| 31 |