1、while(iTimer < 1000) { if (gl_ERR_LEVEL == EL_HIGH) //条件判断为退出线程的信号 AfxEndThread(1); iTimer += 100; Sleep(100); }