MySQL 9.1.0
Source Code Documentation
|
#include <assert.h>
#include <atomic>
#include <cmath>
#include <cstddef>
#include <cstdio>
#include "my_aligned_malloc.h"
Go to the source code of this file.
Classes | |
class | memory::Aligned_atomic< T > |
Templated class that encapsulates an std::atomic within a byte buffer that is padded to the processor cache-line size. More... | |
Namespaces | |
namespace | memory |
Functions | |
static size_t | memory::_cache_line_size () |
Calculates and returns the size of the CPU cache line. More... | |
static size_t | memory::cache_line_size () |
template<typename T > | |
static size_t | memory::_cacheline_for () |
Retrieves the amount of bytes, multiple of the current cacheline size, needed to store an element of type T . More... | |
template<typename T > | |
static size_t | memory::minimum_cacheline_for () |
Retrieves the amount of bytes, multiple of the current cacheline size, needed to store an element of type T . More... | |