19 May
2017
19 May
'17
5:16 p.m.
Niall Douglas wrote:
It's an atomic fence to the *compiler*, not to the CPU. It can't be demonstrated online easily. You need sequences of operations to be folded by an optimiser where the fence inhibits folding.
Or, stated differently, your function just inhibits inlining std::system_category() into user code.