qb
2.0.0.0
C++17 Actor Framework
|
A structure automatically aligned to cache line boundaries. More...
#include <prefix.h>
Public Attributes | |
uint32_t | __raw__ [QB_LOCKFREE_CACHELINE_BYTES/sizeof(uint32_t)] |
A structure automatically aligned to cache line boundaries.
This structure is padded to occupy exactly one cache line (QB_LOCKFREE_CACHELINE_BYTES). It can be used as a base class or member to ensure that an object starts on a cache line boundary, which can help prevent false sharing in concurrent applications when different threads access adjacent data that might otherwise fall into the same cache line. Contains a raw array __raw__ for padding purposes.