Commit Graph

3 Commits

Author SHA1 Message Date
Andrey Semashev
10c61bb25d Converted memory_order to scoped enum on C++11 and later.
This follows the change expected in C++2a, which has been accepted into
N4713 (proposal P0439). The old memory order constants are still
available for backward compatibility.

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0439r0.html
2018-01-29 00:38:44 +03:00
Andrey Semashev
abdce8f1bb Changed memory_order constant values to simplify checks for success/failure orders in compare_exchange methods. Fixed incorrect cas_failure_order_must_not_be_stronger_than_success_order check. 2014-06-01 02:10:44 +04:00
Andrey Semashev
b8626e355b Moving memory_order.hpp to Boost.Atomic. 2014-05-20 21:59:22 +04:00