diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2020-05-18 14:49:44 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2020-05-18 15:02:55 +0300 |
commit | 386f168ab340791631e4d8979c4370ecef7e6b05 (patch) | |
tree | 6dd67b95b02ef42b7d76b138f31554a7cc433a9e /sql/sql_prepare.cc | |
parent | fde94b4cd6c916f118ccb2785c09dafef391298c (diff) | |
download | mariadb-git-386f168ab340791631e4d8979c4370ecef7e6b05.tar.gz |
MDEV-22456 after-merge fix: introduce Atomic_relaxed
In the merge 9e6e43551fc61bc34152f8d60f5d72f0d3814787
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.
Diffstat (limited to 'sql/sql_prepare.cc')
0 files changed, 0 insertions, 0 deletions