memory_order.hpp 793 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef BOOST_MEMORY_ORDER_HPP_INCLUDED
  2. #define BOOST_MEMORY_ORDER_HPP_INCLUDED
  3. // MS compatible compilers support #pragma once
  4. #if defined(_MSC_VER) && (_MSC_VER >= 1020)
  5. # pragma once
  6. #endif
  7. // boost/memory_order.hpp
  8. //
  9. // Defines enum boost::memory_order per the C++0x working draft
  10. //
  11. // Copyright (c) 2008 Peter Dimov
  12. //
  13. // Distributed under the Boost Software License, Version 1.0.
  14. // See accompanying file LICENSE_1_0.txt or copy at
  15. // http://www.boost.org/LICENSE_1_0.txt)
  16. namespace boost
  17. {
  18. enum memory_order
  19. {
  20. memory_order_relaxed = 0,
  21. memory_order_acquire = 1,
  22. memory_order_release = 2,
  23. memory_order_acq_rel = 3, // acquire | release
  24. memory_order_seq_cst = 7 // acq_rel | 4
  25. };
  26. } // namespace boost
  27. #endif // #ifndef BOOST_MEMORY_ORDER_HPP_INCLUDED