News for hackers. Stuff that matters.
Re:Yes, You Have Been Writing SPSC Queues Wrong by IanCal on Thursday December 15, 2016 @05:39PM (#13189305)
Is there a way of hinting this to the compiler, rather than adding a explicit padding? Any way of saying "please don't put the following on the same cache line"?
Re:Yes, You Have Been Writing SPSC Queues Wrong by NotThe1Pct on Thursday December 15, 2016 @05:41PM (#13189320)
You could use the alignas(64) specifier

http://en.cppreference.com/w/cpp/language/alignas

Re:Yes, You Have Been Writing SPSC Queues Wrong by IanCal on Friday December 16, 2016 @08:26AM (#13193042)
Interesting, thanks!