use atomic int for lock-free variable