Huh? Other languages that compile to machine code and offer control over struct layout and access to the machine’s atomic will work the same way.

Sure, C++ has a particular way of describing atomics in a cross-platform way, but the actual hardware operations are not specific to the language.

Yeah, different languages will have different syntaxes and ways of using atomics

But at the hardware level all are kindof the same