error checking
This commit is contained in:
parent
7da7b895c5
commit
52bb5890c4
|
|
@ -72,7 +72,10 @@ int main(void)
|
||||||
if (atomic_load(&dataLoaded))
|
if (atomic_load(&dataLoaded))
|
||||||
{
|
{
|
||||||
framesCounter = 0;
|
framesCounter = 0;
|
||||||
pthread_join(threadId, NULL);
|
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;
|
state = STATE_FINISHED;
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user