Mercurial > projects > dwt2
diff org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.d @ 19:52184e4b815c
no more direct tango.core.Thread. Rename JThread to java.lang.Thread.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Mar 2009 10:55:25 +0100 |
parents | 735224fcc45f |
children | c73c01191fea |
line wrap: on
line diff
--- a/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.d Wed Mar 18 09:57:53 2009 +0100 +++ b/org.eclipse.core.jobs/src/org/eclipse/core/internal/jobs/ThreadJob.d Wed Mar 18 10:55:25 2009 +0100 @@ -14,7 +14,7 @@ import java.lang.all; import java.util.Set; -import java.lang.JThread; +import java.lang.Thread; import tango.core.sync.Mutex; import tango.core.sync.Condition; @@ -177,7 +177,7 @@ throw new OperationCanceledException(); //check if there is a blocking thread before waiting InternalJob blockingJob = manager.findBlockingJob_package(this); - JThread blocker = blockingJob is null ? null : blockingJob.getThread_package(); + Thread blocker = blockingJob is null ? null : blockingJob.getThread_package(); ThreadJob result = this; try { //just return if lock listener decided to grant immediate access @@ -185,7 +185,7 @@ return this; try { waitStart(monitor, blockingJob); - final JThread getThis = JThread.currentThread(); + final Thread getThis = Thread.currentThread(); while (true) { if (isCanceled(monitor)) throw new OperationCanceledException(); @@ -321,7 +321,7 @@ */ private void waitEnd(IProgressMonitor monitor) { final LockManager lockManager = manager.getLockManager(); - final JThread getThis = JThread.currentThread(); + final Thread getThis = Thread.currentThread(); if (isRunning()) { lockManager.addLockThread(getThis, getRule()); //need to re-acquire any locks that were suspended while this thread was blocked on the rule @@ -339,7 +339,7 @@ * @param blockingJob The job that is blocking this thread, or <code>null</code> */ private void waitStart(IProgressMonitor monitor, InternalJob blockingJob) { - manager.getLockManager().addLockWaitThread(JThread.currentThread(), getRule()); + manager.getLockManager().addLockWaitThread(Thread.currentThread(), getRule()); isBlocked = true; manager.reportBlocked(monitor, blockingJob); }