| 41 | } |
| 42 | } |
| 43 | bool Thread::IsThreadRunning(HANDLE threadHandle) |
| 44 | { |
| 45 | if (threadHandle == NULL) |
| 46 | return false; |
| 47 | |
| 48 | DWORD exitCode; |
| 49 | |
| 50 | if (GetExitCodeThread(threadHandle, &exitCode) != 0) |
| 51 | { |
| 52 | return (exitCode == STILL_ACTIVE); |
| 53 | } |
| 54 | |
| 55 | Logger::logf(Err, " GetExitCodeThread failed @ IsThreadRunning: %d\n", GetLastError()); |
| 56 | return false; |
| 57 | } |
| 58 | |
| 59 | /* |
| 60 | IsThreadSuspended - checks if a thread is currently suspended by suspending it |
nothing calls this directly
no outgoing calls
no test coverage detected