If you are writing atomic based code, you should be using something like C++11 and C11 atomics that will take care of fencing on all platforms.
If you are writing atomic based code, you should be using something like C++11 and C11 atomics that will take care of fencing on all platforms.