• Marko Mäkelä's avatar
    MDEV-22456 after-merge fix: introduce Atomic_relaxed · 386f168a
    Marko Mäkelä authored
    In the merge 9e6e4355
    we made Atomic_counter a more generic wrapper of std::atomic
    so that dict_index_t would support the implicit assignment operator.
    
    It is better to revert the changes to Atomic_counter and
    instead introduce Atomic_relaxed as a generic wrapper to std::atomic.
    
    Unlike Atomic_counter, we will not define operator++, operator+=
    or similar, because we want to make the operations more explicit
    in the users of Atomic_wrapper, because unlike loads and stores,
    atomic read-modify-write operations always incur some overhead.
    386f168a
sync0rw.ic 25.9 KB