work.hpp 938 B

1234567891011121314151617181920212223242526272829303132
  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. #if defined BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION && defined BOOST_THREAD_PROVIDES_EXECUTORS && defined BOOST_THREAD_USES_MOVE
  10. #include <boost/thread/detail/nullary_function.hpp>
  11. #include <boost/thread/csbl/functional.hpp>
  12. namespace boost
  13. {
  14. namespace executors
  15. {
  16. typedef detail::nullary_function<void()> work;
  17. #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
  18. typedef detail::nullary_function<void()> work_pq;
  19. //typedef csbl::function<void()> work_pq;
  20. #else
  21. typedef csbl::function<void()> work_pq;
  22. #endif
  23. }
  24. } // namespace boost
  25. #endif
  26. #endif // BOOST_THREAD_EXECUTORS_WORK_HPP