- GetExitCodeThread (thread_hnd, &exitCode);
- DEBUGN (2, ("thread exit-code %lu\n", exitCode));
- if (exitCode != STILL_ACTIVE)
- break;
- Sleep (THREAD_WAIT_INTV);
- }
-
- DEBUGN (2, ("elapsed %.2f, wtimer_elapsed %.2f, ", elapsed,
- wtimer_elapsed (timer)));
-
- wtimer_delete (timer);
-
- /* If we timed out kill the thread. Normal thread exitCode would be 0.
- */
- if (exitCode == STILL_ACTIVE)
- {
- DEBUGN (2, ("thread timed out\n"));
- TerminateThread (thread_hnd, 0);
- }
- else
- {
- DEBUGN (2, ("thread exit-code %lu, WS error %lu\n", exitCode, thread_arg.ws_error));
-