MySQL 8.0.39
Source Code Documentation
|
An atomic size_t
variable, guaranteed to be alone in a CPU cache line.
More...
#include <pfs_global.h>
Public Member Functions | |
PFS_cacheline_atomic_size_t () | |
Public Attributes | |
std::atomic< size_t > | m_size_t |
char | m_full_cache_line [PFS_CACHE_LINE_SIZE - sizeof(std::atomic< size_t >)] |
An atomic size_t
variable, guaranteed to be alone in a CPU cache line.
This is for performance, for variables accessed very frequently.
|
inline |
char PFS_cacheline_atomic_size_t::m_full_cache_line[PFS_CACHE_LINE_SIZE - sizeof(std::atomic< size_t >)] |
std::atomic<size_t> PFS_cacheline_atomic_size_t::m_size_t |