(timeout_secs)
| 95 | |
| 96 | @contextlib.contextmanager |
| 97 | def CompleteInTimeOrDie(timeout_secs): |
| 98 | watcher = WatcherThread(timeout_secs) |
| 99 | watcher.start() |
| 100 | yield |
| 101 | watcher.completed = True |
| 102 | watcher.condition.acquire() |
| 103 | watcher.condition.notify() |
| 104 | watcher.condition.release() |
| 105 | |
| 106 | |
| 107 | def EuthanizeIfNecessary(timeout_secs=120): |
nothing calls this directly
no test coverage detected
searching dependent graphs…