| 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_LAUNCH_HPP |
| 9 | #define BOOST_THREAD_FUTURES_LAUNCH_HPP |
| 10 | |
| 11 | #include <boost/thread/detail/config.hpp> |
| 12 | #include <boost/core/scoped_enum.hpp> |
| 13 | |
| 14 | namespace boost |
| 15 | { |
| 16 | //enum class launch |
| 17 | BOOST_SCOPED_ENUM_DECLARE_BEGIN(launch) |
| 18 | { |
| 19 | none = 0, |
| 20 | async = 1, |
| 21 | deferred = 2, |
| 22 | #ifdef BOOST_THREAD_PROVIDES_EXECUTORS |
| 23 | executor = 4, |
| 24 | #endif |
| 25 | inherit = 8, |
| 26 | sync = 16, |
| 27 | any = async | deferred |
| 28 | } |
| 29 | BOOST_SCOPED_ENUM_DECLARE_END(launch) |
| 30 | } |
| 31 | |
| 32 | #endif // header |
| 33 |