Resumes execution on all threads of the process. @raise WindowsError: On error an exception is raised.
(self)
| 389 | raise |
| 390 | |
| 391 | def resume(self): |
| 392 | """ |
| 393 | Resumes execution on all threads of the process. |
| 394 | |
| 395 | @raise WindowsError: On error an exception is raised. |
| 396 | """ |
| 397 | if self.get_thread_count() == 0: |
| 398 | self.scan_threads() # only refresh the snapshot if empty |
| 399 | resumed = list() |
| 400 | try: |
| 401 | for aThread in self.iter_threads(): |
| 402 | aThread.resume() |
| 403 | resumed.append(aThread) |
| 404 | except Exception: |
| 405 | for aThread in resumed: |
| 406 | try: |
| 407 | aThread.suspend() |
| 408 | except Exception: |
| 409 | pass |
| 410 | raise |
| 411 | |
| 412 | def is_debugged(self): |
| 413 | """ |
no test coverage detected