Lines Matching refs:handle
46 virtual void OnObjectSignaled(HANDLE object);
65 DCHECK(!process_) << "Make sure to close the handle.";
73 void TimerExpiredTask::OnObjectSignaled(HANDLE object) {
79 // Stop watching the process handle since we're killing it.
110 HANDLE process = OpenProcess(PROCESS_TERMINATE | SYNCHRONIZE,
111 FALSE, // Don't inherit handle
122 TerminationStatus GetTerminationStatus(ProcessHandle handle, int* exit_code) {
125 if (!::GetExitCodeProcess(handle, &tmp_exit_code)) {
144 DWORD wait_result = WaitForSingleObject(handle, 0);
180 bool WaitForExitCode(ProcessHandle handle, int* exit_code) {
182 handle, exit_code, base::TimeDelta::FromMilliseconds(INFINITE));
183 CloseProcessHandle(handle);
187 bool WaitForExitCodeWithTimeout(ProcessHandle handle,
190 if (::WaitForSingleObject(handle, timeout.InMilliseconds()) != WAIT_OBJECT_0)
193 if (!::GetExitCodeProcess(handle, &temp_code))
211 HANDLE process = OpenProcess(SYNCHRONIZE,
222 bool WaitForSingleProcess(ProcessHandle handle, base::TimeDelta wait) {
224 if (!WaitForExitCodeWithTimeout(handle, &exit_code, wait))