mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-05 19:08:13 +00:00
core_loading_thread example join thread on completion (#2845)
* core_loading_thread example join thread on completion * error checking
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user