欢迎使用所有平台,请指定回答平台.
类似的问题:How to programmatically get the CPU cache page size in C++?
欢迎使用所有平台,请指定回答平台.
类似的问题:How to programmatically get the CPU cache page size in C++?
You can use std::hardware_destructive_interference_size since C++17.
Its defined as:
两个对象之间的最小偏移量,以避免错误共享.放心