Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The false-sharing macro in the example expands to __attribute__((alligned(/* etc / )) or __declspec(align(/ etc*/). Is there a reason these are preferred over the alignas specifier introduced in C++ 11?


I believe there's a note that recommends the use of alignas when available: https://github.com/abseil/abseil-cpp/blob/fa00c321073c7ea40a...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: