]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/thread/concurrent_queues/queue_op_status.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / thread / concurrent_queues / queue_op_status.hpp
1 #ifndef BOOST_THREAD_QUEUE_OP_STATUS_HPP
2 #define BOOST_THREAD_QUEUE_OP_STATUS_HPP
3
4 //////////////////////////////////////////////////////////////////////////////
5 //
6 // (C) Copyright Vicente J. Botet Escriba 2014. Distributed under the Boost
7 // Software License, Version 1.0. (See accompanying file
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 // See http://www.boost.org/libs/thread for documentation.
11 //
12 //////////////////////////////////////////////////////////////////////////////
13
14 #include <exception>
15 #include <boost/core/scoped_enum.hpp>
16 #include <boost/thread/detail/config.hpp>
17 #include <boost/thread/detail/move.hpp>
18
19 #include <boost/config/abi_prefix.hpp>
20
21 namespace boost
22 {
23 namespace concurrent
24 {
25
26 BOOST_SCOPED_ENUM_DECLARE_BEGIN(queue_op_status)
27 { success = 0, empty, full, closed, busy, timeout, not_ready }
28 BOOST_SCOPED_ENUM_DECLARE_END(queue_op_status)
29
30 struct BOOST_SYMBOL_VISIBLE sync_queue_is_closed : std::exception
31 {
32 };
33
34 }
35
36 #ifndef BOOST_THREAD_QUEUE_DEPRECATE_OLD
37 struct no_block_tag{};
38 BOOST_CONSTEXPR_OR_CONST no_block_tag no_block = {};
39 #endif
40
41 using concurrent::queue_op_status;
42 using concurrent::sync_queue_is_closed;
43
44 }
45
46 #include <boost/config/abi_suffix.hpp>
47
48 #endif