Index: build/android/pylib/utils/timeout_retry.py |
diff --git a/build/android/pylib/utils/timeout_retry.py b/build/android/pylib/utils/timeout_retry.py |
index bc7e891d0b15dd82088911b500d4f788ee7080cf..bae8b16cf7ffd5b16b32e849ffb1af26bf290ead 100644 |
--- a/build/android/pylib/utils/timeout_retry.py |
+++ b/build/android/pylib/utils/timeout_retry.py |
@@ -11,6 +11,10 @@ from pylib.utils import reraiser_thread |
from pylib.utils import watchdog_timer |
+class TimeoutRetryThread(reraiser_thread.ReraiserThread): |
+ pass |
+ |
+ |
def Run(func, timeout, retries, args=None, kwargs=None): |
"""Runs the passed function in a separate thread with timeouts and retries. |
@@ -40,7 +44,7 @@ def Run(func, timeout, retries, args=None, kwargs=None): |
try: |
name = 'TimeoutThread-for-%s' % threading.current_thread().name |
thread_group = reraiser_thread.ReraiserThreadGroup( |
- [reraiser_thread.ReraiserThread(RunOnTimeoutThread, name=name)]) |
+ [TimeoutRetryThread(RunOnTimeoutThread, name=name)]) |
thread_group.StartAll() |
thread_group.JoinAll(watchdog_timer.WatchdogTimer(timeout)) |
return ret[0] |