cpp/atomic/atomic flag/wait