commit | f5498cbabc4ed73aa6a535e75669375c9c289ee3 | [log] [tgz] |
---|---|---|
author | Eric Anderson <ejona@google.com> | Thu Dec 20 15:54:49 2012 -0800 |
committer | Eric Anderson <ejona@google.com> | Wed Jan 16 09:47:38 2013 -0800 |
tree | 4c328d4ab84b5dd822f7bae3d5f00e0251b742fc | |
parent | 0de7885717dce0ed703f10a24f0222f51d6c4428 [diff] |
Add a watchdog to interrupt long-running tasks The watchdog waits on a separate thread and is notified when tasks begin and end. When a work thread exceeds the amount of time allowed to complete the task the watchdog calls Thread.interrupt() on that thread, after which it is the thread's duty to abort.