📜  pthread_detach 示例 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:18.249000             🧑  作者: Mango

代码示例1
pthread_detach Syntax
int pthread_detach(pthread_t tid ); #include  pthread_t tid ; int ret ; /* detach thread tid */ ret = pthread_detach( tid ); The pthread_detach() function is used to indicate to your application that storage for the thread tid can be reclaimed when the thread terminates.