Skip to content

Commit

Permalink
better handling of InterruptedException
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Blakeley committed Aug 24, 2010
1 parent 12b0a63 commit 1f99546
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/java/com/marklogic/performance/PerformanceMeters.java
Expand Up @@ -44,7 +44,7 @@ public class PerformanceMeters {

private static final String NAME = PerformanceMeters.class.getName();

private static final String VERSION = "2010-08-12.1";
private static final String VERSION = "2010-08-24.1";

private Configuration config;

Expand Down Expand Up @@ -157,7 +157,8 @@ void run() throws Exception {
try {
(samplers.get(i)).join();
} catch (InterruptedException e) {
/* should not happen */
// reset interrupt status and continue
Thread.interrupted();
continue;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/java/com/marklogic/performance/sampler/Sampler.java
Expand Up @@ -203,7 +203,8 @@ public void run() {
try {
Thread.sleep(thinkMillis);
} catch (InterruptedException e) {
// ignore the interruption and proceed
// reset interrupt status and continue
Thread.interrupted();
}
}

Expand Down

0 comments on commit 1f99546

Please sign in to comment.