使用 thr_exit(3C) 可以终止线程。对于 POSIX 线程,请参见pthread_exit 语法。
#include <thread.h> void thr_exit(void *status);
thr_exit() 不返回到其调用方。