thr_exit(3T) はスレッドを終了させます。(POSIX スレッドについては、「pthread_exit(3T)」を参照)。
#include <thread.h> void thr_exit(void *status);