cpp/thread/shared future/wait