segmented_stack.hpp 817 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Copyright Oliver Kowalke 2014.
  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_SEGMENTED_STACK_H
  6. #define BOOST_FIBERS_SEGMENTED_STACK_H
  7. #include <boost/config.hpp>
  8. #include <boost/context/segmented_stack.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. #if defined(BOOST_USE_SEGMENTED_STACKS)
  16. # if ! defined(BOOST_WINDOWS)
  17. using segmented_stack = boost::context::segmented_stack;
  18. using default_stack = boost::context::default_stack;
  19. # endif
  20. #endif
  21. }}
  22. #ifdef BOOST_HAS_ABI_HEADERS
  23. # include BOOST_ABI_SUFFIX
  24. #endif
  25. #endif // BOOST_FIBERS_SEGMENTED_STACK_H