future_status.hpp 751 B

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright 2008-10 Anthony Williams
  2. // (C) Copyright 2011-2015 Vicente J. Botet Escriba
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See
  5. // accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #ifndef BOOST_THREAD_FUTURES_FUTURE_STATUS_HPP
  8. #define BOOST_THREAD_FUTURES_FUTURE_STATUS_HPP
  9. #include <boost/thread/detail/config.hpp>
  10. #include <boost/core/scoped_enum.hpp>
  11. namespace boost
  12. {
  13. //enum class future_status
  14. BOOST_SCOPED_ENUM_DECLARE_BEGIN(future_status)
  15. {
  16. ready,
  17. timeout,
  18. deferred
  19. }
  20. BOOST_SCOPED_ENUM_DECLARE_END(future_status)
  21. namespace future_state
  22. {
  23. enum state { uninitialized, waiting, ready, moved, deferred };
  24. }
  25. }
  26. #endif // header