结束一个线程

函数原型

  1. #include <pthread.h>
  2. void pthread_exit(void *retval);

参数

retval用来保存线程退出状态

返回值

为空。因为该函数永远成功