隨筆日記: 一個daemon程序,它的pthread_join()常常意外返回, 非常奇怪!

  TcpServer_Listener::Initialize() {   ...     pthread_create(&_ptThreadHandleAccept, NULL, AcceptThread, (void *)this); }app void* TcpServer_Listener::AcceptThread(void* pParam) {     pthread_detach(
相關文章
相關標籤/搜索