(self)
| 73 | return False |
| 74 | |
| 75 | def _timeout_thread(self): |
| 76 | self._timed_out = True |
| 77 | # On Windows we cannot forcefully interrupt the main thread the same |
| 78 | # way SIGALRM does. We set a flag; callers that iterate can check it. |
| 79 | # For truly blocking GPU calls, this will not help -- but at least |
| 80 | # the outer try/except will catch it after the call returns. |
| 81 | import _thread |
| 82 | _thread.interrupt_main() |
| 83 | |
| 84 | |
| 85 | # ========================================================================= |
nothing calls this directly
no outgoing calls
no test coverage detected