multithread c++ try