MySQL 8.4.2
Source Code Documentation
|
A utility wrapper class, which adds padding at the end of the wrapped structure, so that the next object after it is guaranteed to be in the next cache line. More...
#include <ut0cpu_cache.h>
Public Attributes | |
char | pad [INNODB_CACHE_LINE_SIZE] |
A utility wrapper class, which adds padding at the end of the wrapped structure, so that the next object after it is guaranteed to be in the next cache line.
This is to avoid false-sharing. Use this, as opposed to alignas(), to avoid problems with allocators which do not handle over-aligned types.
char ut::Cacheline_padded< T >::pad[INNODB_CACHE_LINE_SIZE] |