std::atomic is not working with g++/gcc in raspberry pi 3B+ running raspbian.
it seems to behave like a normal variable with race conditions.
atomics are working with clang++/llvm on the same system (clang++ pierror.cpp -std=c++11 -l pthread -o piok).
atomics are working with raspberry pi 2B running archarm
atomics are working on x64
atomic.zip
std::atomic is not working with g++/gcc in raspberry pi 3B+ running raspbian.
it seems to behave like a normal variable with race conditions.
atomics are working with clang++/llvm on the same system (clang++ pierror.cpp -std=c++11 -l pthread -o piok).
atomics are working with raspberry pi 2B running archarm
atomics are working on x64
atomic.zip