policy.hpp 812 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Copyright Oliver Kowalke 2013.
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt)
  5. #ifndef BOOST_FIBERS_POLICY_H
  6. #define BOOST_FIBERS_POLICY_H
  7. #include <type_traits>
  8. #include <boost/config.hpp>
  9. #include <boost/fiber/detail/config.hpp>
  10. #ifdef BOOST_HAS_ABI_HEADERS
  11. # include BOOST_ABI_PREFIX
  12. #endif
  13. namespace boost {
  14. namespace fibers {
  15. enum class launch {
  16. dispatch,
  17. post
  18. };
  19. namespace detail {
  20. template< typename Fn >
  21. struct is_launch_policy : public std::false_type {
  22. };
  23. template<>
  24. struct is_launch_policy< boost::fibers::launch > : public std::true_type {
  25. };
  26. }
  27. }}
  28. #ifdef BOOST_HAS_ABI_HEADERS
  29. # include BOOST_ABI_SUFFIX
  30. #endif
  31. #endif // BOOST_FIBERS_POLICY_H