queue_op_status.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef BOOST_THREAD_QUEUE_OP_STATUS_HPP
  2. #define BOOST_THREAD_QUEUE_OP_STATUS_HPP
  3. //////////////////////////////////////////////////////////////////////////////
  4. //
  5. // (C) Copyright Vicente J. Botet Escriba 2014. Distributed under the Boost
  6. // Software License, Version 1.0. (See accompanying file
  7. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  8. //
  9. // See http://www.boost.org/libs/thread for documentation.
  10. //
  11. //////////////////////////////////////////////////////////////////////////////
  12. #include <exception>
  13. #include <boost/core/scoped_enum.hpp>
  14. #include <boost/thread/detail/config.hpp>
  15. #include <boost/thread/detail/move.hpp>
  16. #include <boost/config/abi_prefix.hpp>
  17. namespace boost
  18. {
  19. namespace concurrent
  20. {
  21. BOOST_SCOPED_ENUM_DECLARE_BEGIN(queue_op_status)
  22. { success = 0, empty, full, closed, busy, timeout, not_ready }
  23. BOOST_SCOPED_ENUM_DECLARE_END(queue_op_status)
  24. struct BOOST_SYMBOL_VISIBLE sync_queue_is_closed : std::exception
  25. {
  26. };
  27. }
  28. #ifndef BOOST_THREAD_QUEUE_DEPRECATE_OLD
  29. struct no_block_tag{};
  30. BOOST_CONSTEXPR_OR_CONST no_block_tag no_block = {};
  31. #endif
  32. using concurrent::queue_op_status;
  33. using concurrent::sync_queue_is_closed;
  34. }
  35. #include <boost/config/abi_suffix.hpp>
  36. #endif