Ejemplo n.º 1
0
 def process_wait(self, timeout=None):
     if timeout is None:
         timeout = INFINITE
     else:
         # WaitForSingleObject() expects time in milliseconds
         timeout = int(timeout * 1000)
     ret = _psutil_mswindows.process_wait(self.pid, timeout)
     if ret == WAIT_TIMEOUT:
         raise TimeoutExpired(self.pid, self._process_name)
     return ret
Ejemplo n.º 2
0
 def process_wait(self, timeout=None):
     if not timeout:
         timeout = 0
     else:
         # WaitForSingleObject() expects time in milliseconds
         timeout = int(timeout * 1000)
     ret = _psutil_mswindows.process_wait(self.pid, timeout)
     if ret == -1:
         raise TimeoutExpired(self.pid, self._process_name)
     return ret
Ejemplo n.º 3
0
 def process_wait(self, timeout=None):
     if timeout is None:
         timeout = INFINITE
     else:
         # WaitForSingleObject() expects time in milliseconds
         timeout = int(timeout * 1000)
     ret = _psutil_mswindows.process_wait(self.pid, timeout)
     if ret == WAIT_TIMEOUT:
         raise TimeoutExpired(self.pid, self._process_name)
     return ret
Ejemplo n.º 4
0
 def process_wait(self, timeout=None):
     if not timeout:
         timeout = 0
     else:
         # WaitForSingleObject() expects time in milliseconds
         timeout = int(timeout * 1000)
     ret = _psutil_mswindows.process_wait(self.pid, timeout)
     if ret == -1:
         raise TimeoutExpired(self.pid, self._process_name)
     return ret