checkpoint.hpp 672 B

12345678910111213141516171819202122232425262728293031323334
  1. // Copyright Oliver Kowalke 2009.
  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_COROUTINES_CHECKPOINT_H
  6. #define BOOST_COROUTINES_CHECKPOINT_H
  7. #include <boost/config.hpp>
  8. #include <boost/context/fcontext.hpp>
  9. #ifdef BOOST_HAS_ABI_HEADERS
  10. # include BOOST_ABI_PREFIX
  11. #endif
  12. namespace boost {
  13. namespace coroutines {
  14. class checkpoint
  15. {
  16. public:
  17. private:
  18. context::fcontext_t ctx_;
  19. void * sp_;
  20. };
  21. }}
  22. #ifdef BOOST_HAS_ABI_HEADERS
  23. # include BOOST_ABI_SUFFIX
  24. #endif
  25. #endif // BOOST_COROUTINES_CHECKPOINT_H