| 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 | |
| 8 | #ifndef BOOST_THREAD_FUTURES_FUTURE_STATUS_HPP |
| 9 | #define BOOST_THREAD_FUTURES_FUTURE_STATUS_HPP |
| 10 | |
| 11 | #include <boost/thread/detail/config.hpp> |
| 12 | #include <boost/core/scoped_enum.hpp> |
| 13 | |
| 14 | namespace boost |
| 15 | { |
| 16 | //enum class future_status |
| 17 | BOOST_SCOPED_ENUM_DECLARE_BEGIN(future_status) |
| 18 | { |
| 19 | ready, |
| 20 | timeout, |
| 21 | deferred |
| 22 | } |
| 23 | BOOST_SCOPED_ENUM_DECLARE_END(future_status) |
| 24 | namespace future_state |
| 25 | { |
| 26 | enum state { uninitialized, waiting, ready, moved, deferred }; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | #endif // header |
| 31 |