cpp/thread/condition variable/wait