Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
MDEV-17441 - InnoDB transition to C++11 atomics
purge_sys_t::m_enabled transition to std::atomic. enabled_latched() doesn't make much sense: in this particular case it is as fast as atomic load. The sole caller has to reload it's value anyway, due to rw_lock_x_lock(&purge_sys.latch) issuing acquire memory barrier. When purge_sys_t::close() is reached, m_enabled must be false, otherwise we may free members, which are still in use by the coordinator thread.
- Loading branch information
Sergey Vojtovich
committed
Dec 27, 2018
1 parent
f401ba4
commit 0ce7f6b
Showing
2 changed files
with
7 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters