MySQL 9.1.0
Source Code Documentation
|
An atomic<T> variable, guaranteed to be alone in a CPU cache line. More...
#include <pfs_global.h>
Public Member Functions | |
PFS_cacheline_atomic_ptr () | |
Public Attributes | |
std::atomic< T > | m_ptr |
char | m_full_cache_line [PFS_CACHE_LINE_SIZE - sizeof(std::atomic< T >)] |
An atomic<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_ptr< T >::m_full_cache_line[PFS_CACHE_LINE_SIZE - sizeof(std::atomic< T >)] |
std::atomic<T> PFS_cacheline_atomic_ptr< T >::m_ptr |