ソースを参照

core_loading_thread example join thread on completion (#2845)

* core_loading_thread example join thread on completion

* error checking
pull/2846/head
Antonis Geralis 2年前
committed by GitHub
コミット
ba38fe5b97
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更4行の追加0行の削除
  1. +4
    -0
      examples/core/core_loading_thread.c

+ 4
- 0
examples/core/core_loading_thread.c ファイルの表示

@ -72,6 +72,10 @@ int main(void)
if (atomic_load(&dataLoaded))
{
framesCounter = 0;
int error = pthread_join(threadId, NULL);
if (error != 0) TraceLog(LOG_ERROR, "Error joining loading thread");
else TraceLog(LOG_INFO, "Loading thread terminated successfully");
state = STATE_FINISHED;
}
} break;

読み込み中…
キャンセル
保存