Hacker News new | ask | show | jobs
by wat10000 76 days ago
Right, that's what the various memory ordering constants are for in C++ atomics, and other languages will likely have an equivalent. On such architectures, those will emit special instructions or barriers.