diff options
author | Tom <tomut@yahoo.com> | 2021-01-03 16:43:10 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-04 19:13:52 +0100 |
commit | fb84f0ec9c4d5e1a810dc05965ddbec7ff5d99ec (patch) | |
tree | 97976b8388be8b7076da2f7f1656a6d225f1739c /Libraries/LibCpp | |
parent | a6c459dd2907be6479a89368c0f957da06e5c1ec (diff) | |
download | serenity-fb84f0ec9c4d5e1a810dc05965ddbec7ff5d99ec.zip |
AK: Add default memory order as template argument for Atomic<T>
This is useful for collecting statistics, e.g.
Atomic<unsigned, MemoryOrder::memory_order_relaxed> would allow
using operators such as ++ to use relaxed semantics throughout
without having to explicitly call fetch_add with the memory order.
Diffstat (limited to 'Libraries/LibCpp')
0 files changed, 0 insertions, 0 deletions