memory_order.hpp
Go to the documentation of this file.
00001 #ifndef BOOST_MEMORY_ORDER_HPP_INCLUDED
00002 #define BOOST_MEMORY_ORDER_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
00022 {
00023 
00024 enum memory_order
00025 {
00026     memory_order_relaxed = 0,
00027     memory_order_acquire = 1,
00028     memory_order_release = 2,
00029     memory_order_acq_rel = 3, // acquire | release
00030     memory_order_seq_cst = 7  // acq_rel | 4
00031 };
00032 
00033 } // namespace boost
00034 
00035 #endif // #ifndef BOOST_MEMORY_ORDER_HPP_INCLUDED


appl
Author(s): petercai
autogenerated on Tue Jan 7 2014 11:02:29