基本编程 - pthread_exit

优质
小牛编辑
133浏览
2023-12-01

结束一个线程

函数原型

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

参数

retval用来保存线程退出状态

返回值

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