Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Unified Diff: build/android/pylib/utils/timeout_retry.py

Issue 636273004: Make TimeoutRetryThread's stoppable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 bae8b16cf7ffd5b16b32e849ffb1af26bf290ead..e6523f9637c55467ef9df389261042da438337c4 100644
--- a/build/android/pylib/utils/timeout_retry.py
+++ b/build/android/pylib/utils/timeout_retry.py
@@ -42,7 +42,8 @@ def Run(func, timeout, retries, args=None, kwargs=None):
while True:
try:
- name = 'TimeoutThread-for-%s' % threading.current_thread().name
+ name = 'TimeoutThread-%d-for-%s' % (retries,
jbudorick 2014/10/24 17:30:52 Good idea.
+ threading.current_thread().name)
thread_group = reraiser_thread.ReraiserThreadGroup(
[TimeoutRetryThread(RunOnTimeoutThread, name=name)])
thread_group.StartAll()
« build/android/pylib/utils/reraiser_thread.py ('K') | « build/android/pylib/utils/reraiser_thread.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698