MySQL 8.0.39
Source Code Documentation
PFS_cacheline_atomic_uint64 Struct Reference

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

#include <pfs_global.h>

Public Member Functions

 PFS_cacheline_atomic_uint64 ()
 

Public Attributes

std::atomic< uint64m_u64
 
char m_full_cache_line [PFS_CACHE_LINE_SIZE - sizeof(std::atomic< uint64 >)]
 

Detailed Description

An atomic uint64 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_uint64()

PFS_cacheline_atomic_uint64::PFS_cacheline_atomic_uint64 ( )
inline

Member Data Documentation

◆ m_full_cache_line

char PFS_cacheline_atomic_uint64::m_full_cache_line[PFS_CACHE_LINE_SIZE - sizeof(std::atomic< uint64 >)]

◆ m_u64

std::atomic<uint64> PFS_cacheline_atomic_uint64::m_u64

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