提交 63411ab4 编写于 作者: K kohsuke

synchronization moved to latch.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34615 71c3de6d-444a-0410-be80-ed276b4c234a
上级 40d4c2d7
......@@ -103,11 +103,11 @@ public final class WorkUnitContext {
/**
* All the {@link Executor}s that jointly execute a {@link Task} call this method to synchronize on the start.
*/
public synchronized void synchronizeStart() throws InterruptedException {
public void synchronizeStart() throws InterruptedException {
startLatch.synchronize();
}
public synchronized void synchronizeEnd(Queue.Executable executable, Throwable problems, long duration) throws InterruptedException {
public void synchronizeEnd(Queue.Executable executable, Throwable problems, long duration) throws InterruptedException {
endLatch.synchronize();
// the main thread will send a notification
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册