queue_op_status.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 <boost/thread/detail/config.hpp>
  13. #include <boost/thread/detail/move.hpp>
  14. #include <boost/config/abi_prefix.hpp>
  15. namespace boost
  16. {
  17. namespace concurrent
  18. {
  19. BOOST_SCOPED_ENUM_DECLARE_BEGIN(queue_op_status)
  20. { success = 0, empty, full, closed, busy, timeout, not_ready }
  21. BOOST_SCOPED_ENUM_DECLARE_END(queue_op_status)
  22. struct sync_queue_is_closed : std::exception
  23. {
  24. };
  25. }
  26. #ifndef BOOST_THREAD_QUEUE_DEPRECATE_OLD
  27. struct no_block_tag{};
  28. BOOST_CONSTEXPR_OR_CONST no_block_tag no_block = {};
  29. #endif
  30. using concurrent::queue_op_status;
  31. using concurrent::sync_queue_is_closed;
  32. }
  33. #include <boost/config/abi_suffix.hpp>
  34. #endif