core_loading_thread example join thread on completion
This commit is contained in:
parent
dbdbbea471
commit
7da7b895c5
|
|
@ -72,6 +72,7 @@ int main(void)
|
||||||
if (atomic_load(&dataLoaded))
|
if (atomic_load(&dataLoaded))
|
||||||
{
|
{
|
||||||
framesCounter = 0;
|
framesCounter = 0;
|
||||||
|
pthread_join(threadId, NULL);
|
||||||
state = STATE_FINISHED;
|
state = STATE_FINISHED;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user