Procházet zdrojové kódy

core_loading_thread example join thread on completion (#2845)

* core_loading_thread example join thread on completion

* error checking
pull/2846/head
Antonis Geralis před 2 roky
odevzdal GitHub
rodič
revize
ba38fe5b97
V databázi nebyl nalezen žádný známý klíč pro tento podpis ID GPG klíče: 4AEE18F83AFDEB23
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. +4
    -0
      examples/core/core_loading_thread.c

+ 4
- 0
examples/core/core_loading_thread.c Zobrazit soubor

@ -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;

Načítá se…
Zrušit
Uložit