MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / is_alive

Method is_alive

pydevd_attach_to_process/winappdbg/thread.py:418–433  ·  view source on GitHub ↗

@rtype: bool @return: C{True} if the thread if currently running. @raise WindowsError: The debugger doesn't have enough privileges to perform this action.

(self)

Source from the content-addressed store, hash-verified

416 return win32.ResumeThread(hThread)
417
418 def is_alive(self):
419 """
420 @rtype: bool
421 @return: C{True} if the thread if currently running.
422 @raise WindowsError:
423 The debugger doesn't have enough privileges to perform this action.
424 """
425 try:
426 self.wait(0)
427 except WindowsError:
428 e = sys.exc_info()[1]
429 error = e.winerror
430 if error == win32.ERROR_ACCESS_DENIED:
431 raise
432 return error == win32.WAIT_TIMEOUT
433 return True
434
435 def get_exit_code(self):
436 """

Calls 1

waitMethod · 0.95

Tested by 11

join_threadFunction · 0.36
check_conditionFunction · 0.36
test_replace_processFunction · 0.36
test_logging_apiFunction · 0.36