SDL_WaitThread (3) - Linux Manuals
SDL_WaitThread: Wait for a thread to finish.
NAMESDL_WaitThread - Wait for a thread to finish.
#include "SDL.h" #include "SDL_thread.h"
void SDL_WaitThread(SDL_Thread *thread, int *status);
Wait for a thread to finish (timeouts are not supported).
The return code for the thread function is placed in the area pointed to by status, if status is not NULL.