SDL_KillThread man page
SDL_KillThread — Gracelessly terminates the thread.
#include "SDL.h" #include "SDL_thread.h"
void SDL_KillThread(SDL_Thread *thread);
SDL_KillThread gracelessly terminates the thread associated with thread. If possible, you should use some other form of IPC to signal the thread to quit.