@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)
| 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 | """ |