These atomic operations should probably have barriers.