core_loading_thread example join thread on completion

This commit is contained in:
Antonis Geralis 2022-12-31 19:52:54 +02:00 • committed by GitHub
commit 7da7b895c5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,6 +72,7 @@ int main(void)
if (atomic_load(&dataLoaded))
{
framesCounter = 0;
pthread_join(threadId, NULL);
state = STATE_FINISHED;
}
} break;