The systhread_terminate function terminates a specified thread.
#include <base/systhr.h> void systhread_terminate(SYS_THREAD thr);
void
SYS_THREAD thr is the thread to terminate.