do {
if (GetExitCodeThread(tsk->taskHandle, &lpexitcode) == TRUE) {
if (lpexitcode == STILL_ACTIVE) {
DisplayPrint("h1 still active!\n");
TaskDelay(10);
} else {
ErrorPrint("%s exit, code is %d!\n", tsk->taskname, lpexitcode);
}
} else {
ErrorPrint("GetExitCodeThread %s run failure!\n", tsk->taskname);
}
} while (lpexitcode == STILL_ACTIVE);
Vs环境监视每一个线程活跃情况
最新推荐文章于 2024-04-25 12:18:13 发布