Use atomic read for an atomic variable