Use pthread_join(3THR) to wait for a thread to terminate. Prototype: int pthread_join(thread_t tid, void **status);. #include <pthread.h> ...
確定! 回上一頁