From 2c449c990eae51e9bc539978880e2ca2c3d4b4dc Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 9 Sep 2010 22:34:13 +0000 Subject: [PATCH] doc improvement git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34625 71c3de6d-444a-0410-be80-ed276b4c234a --- core/src/main/java/hudson/model/queue/WorkUnitContext.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/main/java/hudson/model/queue/WorkUnitContext.java b/core/src/main/java/hudson/model/queue/WorkUnitContext.java index d381e7762c..02bacf86d3 100644 --- a/core/src/main/java/hudson/model/queue/WorkUnitContext.java +++ b/core/src/main/java/hudson/model/queue/WorkUnitContext.java @@ -107,6 +107,13 @@ public final class WorkUnitContext { startLatch.synchronize(); } + /** + * All the {@link Executor}s that jointly execute a {@link Task} call this method to synchronize on the end of the task. + * + * @throws InterruptedException + * If any of the member thread is interrupted while waiting for other threads to join, all + * the member threads will report {@link InterruptedException}. + */ public void synchronizeEnd(Queue.Executable executable, Throwable problems, long duration) throws InterruptedException { endLatch.synchronize();