MCPcopy Create free account
hub / github.com/GPUOpen-Tools/GPU-Reshape / IsAlive

Method IsAlive

Source/Test/Automation/Source/Data/ApplicationData.cpp:33–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#endif // _WIN32
32
33bool ApplicationData::IsAlive() const {
34#if _WIN32
35 HANDLE process = OpenProcess(SYNCHRONIZE, FALSE, processID);
36
37 // Wait with zero time
38 DWORD result = WaitForSingleObject(process, 0);
39 CloseHandle(process);
40
41 // Check if it was successfully signalled
42 return result == WAIT_TIMEOUT;
43#endif // _WIN32
44}

Callers 5

RunMethod · 0.80
RunMethod · 0.80
RunMethod · 0.80
RunInstanceMethod · 0.80
RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected