work.hpp 800 B

12345678910111213141516171819202122232425262728293031
  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. #ifndef BOOST_THREAD_EXECUTORS_WORK_HPP
  7. #define BOOST_THREAD_EXECUTORS_WORK_HPP
  8. #include <boost/thread/detail/config.hpp>
  9. #include <boost/thread/detail/nullary_function.hpp>
  10. #include <boost/thread/csbl/functional.hpp>
  11. namespace boost
  12. {
  13. namespace executors
  14. {
  15. typedef detail::nullary_function<void()> work;
  16. #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
  17. typedef detail::nullary_function<void()> work_pq;
  18. //typedef csbl::function<void()> work_pq;
  19. #else
  20. typedef csbl::function<void()> work_pq;
  21. #endif
  22. }
  23. } // namespace boost
  24. #endif // BOOST_THREAD_EXECUTORS_WORK_HPP