MySQL 9.1.0
Source Code Documentation
PFS_cacheline_atomic_size_t Struct Reference

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 >)]
 

Detailed Description

An atomic size_t variable, guaranteed to be alone in a CPU cache line.

This is for performance, for variables accessed very frequently.

Constructor & Destructor Documentation

◆ PFS_cacheline_atomic_size_t()

PFS_cacheline_atomic_size_t::PFS_cacheline_atomic_size_t ( )
inline

Member Data Documentation

◆ m_full_cache_line

char PFS_cacheline_atomic_size_t::m_full_cache_line[PFS_CACHE_LINE_SIZE - sizeof(std::atomic< size_t >)]

◆ m_size_t

std::atomic<size_t> PFS_cacheline_atomic_size_t::m_size_t

The documentation for this struct was generated from the following file: