pthread_join函數

函數原型:int pthread_join(pthread_t tid, void **status);linux 功能:pthread_join()函數會一直阻塞調用線程,直到指定的線程tid終止。當pthread_join()返回以後,應用程序可回收ios 與已終止線程關聯的任何數據存儲空間,(另外也可設置線程attr屬性,當線程結束時直接回收資源)若是沒有必要等待特定的線程函數 終止以後才進
相關文章
相關標籤/搜索