I need to have atomic variables in my program. Previously I was using std::atomic, but the platform in which I\'m working now does not have a g++ com
std::atomic
I've seen you asking about GCC in some comments, here you go.
GCC's Built-in functions for atomic memory access