线成的退出!sos!
有关线成的退出,如何实现,我用pthread_exit,可以吗?
int pthread_return1;
这个线程是这样创建的pthread_t hAudioDecode,AudioDecodeThread是入口函数;unsigned long ADecodeID;
pthread_return1=pthread_create(&hAudioDecode,0,AudioDecodeThread ,(void*)&ADecodeID);
pthread_detach(hAudioDecode);
我在主线程中用pthread_exit(pthread_return1);为什么调用这个函数就停到哪里呢!