MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / WaitForExit

Method WaitForExit

SpeedTest/Process.h:26–33  ·  view source on GitHub ↗

* @brief Wait for the process handle to exit * @return the exit code of the process */

Source from the content-addressed store, hash-verified

24 * @return the exit code of the process
25 */
26 [[maybe_unused]] int WaitForExit() const
27 {
28 WaitForSingleObject(m_processHandle, INFINITE);
29 DWORD exitCode{};
30 GetExitCodeProcess(m_processHandle, &exitCode);
31 CloseHandle(m_processHandle);
32 return exitCode;
33 }
34
35 [[nodiscard]] HANDLE Handle() const { return m_processHandle; }
36

Callers 2

StartMethod · 0.80
WaitForAllProcessesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected