launch.hpp 755 B

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