00001 #ifndef BOOST_ATOMIC_MEMORY_ORDER2_HPP_INCLUDED 00002 #define BOOST_ATOMIC_MEMORY_ORDER2_HPP_INCLUDED 00003 00004 // MS compatible compilers support #pragma once 00005 00006 #if defined(_MSC_VER) && (_MSC_VER >= 1020) 00007 # pragma once 00008 #endif 00009 00010 // boost/memory_order.hpp 00011 // 00012 // Defines enum boost::memory_order per the C++0x working draft 00013 // 00014 // Copyright (c) 2008 Peter Dimov 00015 // 00016 // Distributed under the Boost Software License, Version 1.0. 00017 // See accompanying file LICENSE_1_0.txt or copy at 00018 // http://www.boost.org/LICENSE_1_0.txt) 00019 00020 00021 namespace boost_atomic 00022 { 00023 00024 enum memory_order2 00025 { 00026 memory_order2_relaxed = 0, 00027 memory_order2_acquire = 1, 00028 memory_order2_release = 2, 00029 memory_order2_acq_rel = 3, // acquire | release 00030 memory_order2_seq_cst = 7, // acq_rel | 4 00031 memory_order2_consume = 8, 00032 }; 00033 00034 } // namespace boost 00035 00036 #endif // #ifndef BOOST_MEMORY_ORDER2_HPP_INCLUDED