소스 검색

catch时增加返回!

lwk 19 시간 전
부모
커밋
49c3b50f54
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      CcosThread/CcosThread.cpp

+ 2 - 0
CcosThread/CcosThread.cpp

@@ -87,9 +87,11 @@ void* Thread_Base::Thread_Base_Thread(void* pPara) {
     }
     catch (const std::exception& e) {
         ERR_LOG("[Thread] Exception: " << e.what());
+        return nullptr;
     }
     catch (...) {
         ERR_LOG("[Thread] Unknown exception");
+        return nullptr;
     }
     return nullptr;
 }