pthread_join函数

函数原型:int pthread_join(pthread_t tid, void **status);linux 功能:pthread_join()函数会一直阻塞调用线程,直到指定的线程tid终止。当pthread_join()返回以后,应用程序可回收ios 与已终止线程关联的任何数据存储空间,(另外也可设置线程attr属性,当线程结束时直接回收资源)若是没有必要等待特定的线程函数 终止以后才进
相关文章
相关标签/搜索