首页 > TAG信息列表 > Cscom

AfxBeginThread()及AfxBeginThread类 使用经验

启动线程的程序举例: BOOL Cscom::ReadCommTHreadStart(void)//用于 线程启动 { static int thread_n =0; this->threadRunning = false;// 在线程程序中,作为while循环条件。false时,退出线程。 Sleep(10);//等10ms,线程程序退出。 if(this->m_pThread==NULL) {