Skip to content
Snippets Groups Projects
Commit 6b214da3 authored by Florian Fischer's avatar Florian Fischer
Browse files

[Common] add CACHE_LINE_EXCLUSIVE macro

The macro uses std::aligned_storage to ensure the symbol
is properly cache line aligned and cache line sized.
This prevents cache line sharing with another symbol.

The actual symbol is initialized with the placement new operator
and for now must have a constructor without arguments.
parent 8278b88c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment