MCPcopy Create free account
hub / github.com/RightNow-AI/autokernel / _timeout_thread

Method _timeout_thread

bench.py:75–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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# =========================================================================

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected